manu-urba / dart-covid19-api

Covid-19 API wrapper for Dart

Home Page:https://pub.dev/packages/covid19/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dart-covid19-api pub package

Covid-19 API wrapper for Dart

Basic usage

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();
}

Documentation

https://pub.dev/documentation/covid19/latest/covid19/covid19-library.html

More info

  • 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 ❤️

About

Covid-19 API wrapper for Dart

https://pub.dev/packages/covid19/

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Dart 100.0%