getWorldTotal method

Future<Covid19GlobalDataTotal> getWorldTotal ()

Fetches countries informations.

It returns a list of Covid19GlobalDataTotal.

Implementation

Future<Covid19GlobalDataTotal> getWorldTotal() async {
  var res = await _dio.get('/world/total');
  var data = Covid19GlobalDataTotal(res.data);
  return data;
}