countries_utils 2.0.0
countries_utils: ^2.0.0 copied to clipboard
A lightweight pure-Dart package for offline world countries data with query utilities.
We analyzed this package 44 hours ago, and awarded it 60 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
5/5 points: Provide a valid README.md
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Use an OSI-approved license
Detected license: Apache-2.0.
10/10 points: 20% or more of the public API has dartdoc comments
52 out of 62 API elements (83.9 %) have documentation comments.
Some symbols that are missing documentation: countries, countries_data, countries_data.countriesData, countries_utils.Country.Country.new, countries_utils.Currency.Currency.fromJson.
10/10 points: Package has an example
0/20 points: Supports 0 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
0/50 points: code has no errors, warnings, lints, or formatting issues
Found 52 issues. Showing the first 2:
ERROR: The getter 'borders' isn't defined for the type 'Country'.
lib/countries.dart:50:44
╷
50 │ return _all.borderingCountries(country.borders);
│ ^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/countries.dart
ERROR: The getter 'currencies' isn't defined for the type 'Country'.
lib/countries.dart:76:28
╷
76 │ for (final cu in c.currencies)
│ ^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/countries.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
freezed_annotation |
^2.4.1 |
2.4.4 | 3.1.0 | |
json_annotation |
^4.9.0 |
4.11.0 | 4.11.0 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
collection |
- | 1.19.1 | 1.19.1 | |
meta |
- | 1.18.2 | 1.18.2 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `^2.4.1` on freezed_annotation does not support the stable version `3.0.0`.
Try running dart pub upgrade --major-versions freezed_annotation to update the constraint.
10/10 points: Package supports latest stable Dart and Flutter SDKs
0/20 points: Compatible with dependency constraint lower bounds
downgrade analysis failed failed with 51 errors:
UNDEFINED_GETTER-lib/countries.dart:50:44- The getter 'borders' isn't defined for the type 'Country'.UNDEFINED_GETTER-lib/countries.dart:76:28- The getter 'currencies' isn't defined for the type 'Country'.UNDEFINED_GETTER-lib/countries.dart:86:27- The getter 'languages' isn't defined for the type 'Country'.
Run dart pub downgrade and then dart analyze to reproduce the above problem.
You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.
Analyzed with Pana 0.23.12, Dart 3.11.5.
Check the analysis log for details.