crackwatch 0.2.0 copy "crackwatch: ^0.2.0" to clipboard
crackwatch: ^0.2.0 copied to clipboard

A wrapper for the CrackWatch API (https://crackwatch.com/api)

example/crackwatch_example.dart

import 'package:crackwatch/crackwatch.dart';

Future<void> main() async {
  var cw = CrackWatch();
  try {
    var games = await cw.getGames();
    var cracks = await cw.getCracks();

    print('First game: \n${games[0]}');

    print('First crack: \n${cracks[0]}');
  } catch (e) {
    print(e);
  }
}
0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

A wrapper for the CrackWatch API (https://crackwatch.com/api)

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

http, json_annotation

More

Packages that depend on crackwatch