Skip to content

Instantly share code, notes, and snippets.

@Bharathh-Raj
Created March 17, 2022 06:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bharathh-Raj/75badedaae366dbce591509d1d520333 to your computer and use it in GitHub Desktop.
Save Bharathh-Raj/75badedaae366dbce591509d1d520333 to your computer and use it in GitHub Desktop.
abstract class DataSource {
Future<String> fetch();
}
class RemoteDateSource extends DataSource {
@override
Future<String> fetch() async {
final result = await httpClient.get("", 0, "");
return result;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment