bgg 0.1.0 copy "bgg: ^0.1.0" to clipboard
bgg: ^0.1.0 copied to clipboard

Dart 1 only

BoardGameGeek.com API Client for Dart and Flutter.

bgg #

BoardGameGeek.com API Client for Dart and Flutter.

Warning: This is not an official Google or Dart project.

Usage #

// Prints the game matching ID#2536.
//
// Then prints all games with "Letters" in the title.
main() async {
  var http = new BggHttp();
  var bgg = new Bgg(http);
  var result = await bgg.getBoardGame(2536);
  print(result.name);
  
  var search = await bgg.searchGames('Letters');
  print('\nGames matching "Letters": ');
  print('* ' + search.map((r) => r.name).toList().join('\n* '));
  http.close();
}
0
likes
20
pub points
0%
popularity

Publisher

unverified uploader

BoardGameGeek.com API Client for Dart and Flutter.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

http, meta, xml

More

Packages that depend on bgg