hots_dog_api 1.1.0

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 73

hots.dog API

The hots.dog API provides Heroes of Storm statistical information. This package provides a Dart library for using those APIs.

2017-12-18: Initial Version

2017-12-18: Fix strong typing issues

2018-02-03: Override equality for BuildStatistics, BuildWinRates, and TalentWinRates

2018-02-03: Fix not using deep collection equality for lists

example/example.dart

import 'dart:async';

import 'package:hots_dog_api/hots_dog_api.dart';

main() async {
  try {
    BuildWinRates buildWinRates = await getBuildWinRates('2.30.0', 'Rehgar');
    print(buildWinRates);

  } catch (e) {
    print(e);
  }

  try {
    WinRates winRates = await getWinRates('2.30.0');
    print(winRates);

  } catch (e) {
    print(e);
  }
}

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  hots_dog_api: "^1.1.0"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:hots_dog_api/hots_dog_api.dart';
        
Version Uploaded Documentation Archive
1.1.0 Feb 11, 2018 Go to the documentation of hots_dog_api 1.1.0 Download hots_dog_api 1.1.0 archive
1.0.7 Feb 7, 2018 Go to the documentation of hots_dog_api 1.0.7 Download hots_dog_api 1.0.7 archive
1.0.6 Feb 4, 2018 Go to the documentation of hots_dog_api 1.0.6 Download hots_dog_api 1.0.6 archive
1.0.5 Feb 3, 2018 Go to the documentation of hots_dog_api 1.0.5 Download hots_dog_api 1.0.5 archive
1.0.4 Feb 3, 2018 Go to the documentation of hots_dog_api 1.0.4 Download hots_dog_api 1.0.4 archive
1.0.3 Feb 3, 2018 Go to the documentation of hots_dog_api 1.0.3 Download hots_dog_api 1.0.3 archive
1.0.2 Feb 3, 2018 Go to the documentation of hots_dog_api 1.0.2 Download hots_dog_api 1.0.2 archive
1.0.1 Dec 18, 2017 Go to the documentation of hots_dog_api 1.0.1 Download hots_dog_api 1.0.1 archive
1.0.0 Dec 18, 2017 Go to the documentation of hots_dog_api 1.0.0 Download hots_dog_api 1.0.0 archive

Analysis

This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • completed on Feb 11, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
47 / 100
Health:
Code health derived from static analysis. [more]
98 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
73

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:hots_dog_api/hots_dog_api.dart.

Suggestions

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.24.2
collection ^1.14.3 1.14.5
http ^0.11.3+13 0.11.3+16
Transitive dependencies
async 2.0.3 2.0.4
charcode 1.1.1
http_parser 3.1.1
path 1.5.1
source_span 1.4.0
string_scanner 1.0.2
typed_data 1.1.5