countries_utils 2.0.0 copy "countries_utils: ^2.0.0" to clipboard
countries_utils: ^2.0.0 copied to clipboard

A lightweight pure-Dart package for offline world countries data with query utilities.

60/ 160
pub points
532
downloads

We analyzed this package 44 hours ago, and awarded it 60 pub points (of a possible 160):

Passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: Apache-2.0.

Passed report section
Provide documentation
20 / 20trigger folding of the section

Passed check 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.

Passed check 10/10 points: Package has an example

Failed report section
Platform support
0 / 20trigger folding of the section

Failed check 0/20 points: Supports 0 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

Failed report section
Pass static analysis
0 / 50trigger folding of the section

Failed check 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

Failed report section
Support up-to-date dependencies
10 / 40trigger folding of the section

Failed check 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.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Failed check 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.

Weekly downloads

Display as:
By versions:
7
likes
60
points
532
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A lightweight pure-Dart package for offline world countries data with query utilities.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

freezed_annotation, json_annotation

More

Packages that depend on countries_utils