Covid19Client class

The base class which allows to create a covid19 client.

You have to create an instance of this class to start working with this package.

Constructors

Covid19Client()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

close({bool force: false}) → void
Shuts down the covid19 client. [...]
getByCountry({String country, String status, bool live: false, String from, String to}) Future<List>
Fetches informations about a single country. [...]
getByCountryTotal({String country, String status, String from, String to}) Future<List>
Fetches total informations about a single country. [...]
getCountries() Future<List<Covid19CountryBase>>
Fetches countries informations. [...]
getDayOne({String country, String status, bool live: false}) Future<List<Covid19CountryAllStatus>>
Fetches countries information since the day one. [...]
getDayOneTotal({String country, String status}) Future<List>
Fetches countries information since the day one. [...]
getLive({String country, String status, String date}) Future<List<Covid19CountryAllStatus>>
Fetches live informations about a single country after a specific date. [...]
getSummary() Future<Covid19Summary>
Fetches summary informations, see Covid19Summary.
getWorldTotal() Future<Covid19GlobalDataTotal>
Fetches countries informations. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited