Skip to content

Instantly share code, notes, and snippets.

@devjaime
Created March 21, 2021 04:45
Show Gist options
  • Select an option

  • Save devjaime/ee2f514fc8fdb57f6a12f3723b1ba58b to your computer and use it in GitHub Desktop.

Select an option

Save devjaime/ee2f514fc8fdb57f6a12f3723b1ba58b to your computer and use it in GitHub Desktop.
Considere esta clase de API simulada que nos dice los últimos números de casos de COVID:
// Mock API class
class CovidAPI {
Future<int> getCases() => Future.value(1000);
Future<int> getRecovered() => Future.value(100);
Future<int> getDeaths() => Future.value(10);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment