Created
March 21, 2021 04:45
-
-
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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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