Covid-19 API wrapper for Dart
import 'package:covid19/covid19.dart';
void main() async {
var covid = Covid19Client();
var summary = await covid.getSummary();
print('Global new confirmed coronavirus cases: ${summary.global.newConfirmed}');
covid.close();
}
https://pub.dev/documentation/covid19/latest/covid19/covid19-library.html
- API is fetched from https://api.covid19api.com (JHU CSSE COVID-19 Data)
- This is my first API wrapper and my first project in dart, I'll be happy to get any recommendation ❤️