rest_countries_data 1.0.2 copy "rest_countries_data: ^1.0.2" to clipboard
rest_countries_data: ^1.0.2 copied to clipboard

A Dart package that acts as a wrapper for the REST Countries API, providing easy access to countries data.

Changelog #

All notable changes to this project will be documented in this file.

1.0.0 - 2025-07-16 #

  • 🎉 Initial release of rest_countries_data Dart package.
  • Provides a wrapper around the restcountries.com API.
  • Features include:
    • getAllCountries with field filtering (max 10)
    • getCountryByCode, getCountriesByCodes
    • getCountriesByCurrency, getCountriesByLanguage
    • getCountriesByCapital, getCountriesByRegion, getCountriesBySubRegion
    • getCountryByName, getCountryByFullName
    • getCountriesByTranslation
    • getCountriesByDemonym
    • getCountriesByIndependentStatus
  • Includes example usage in /example folder.

1.0.1 - 2025-07-23 #

Changed #

  • Moved conditional logic from the service layer to the repository layer.
  • Updated tests to reflect logic change.

Added #

  • Image added to README.

1.0.2 - 2025-07-25 #

Added #

  • toTrim() method for all parameters to sanitize input data.
  • toString() override method for CountryModel to improve debug readability.
  • getCountryPhoneNumberCode getter to the CountryModel to return country phone dialing code.
  • Unit test to verify CountryModel.getCountryPhoneNumberCode.

Changed #

  • Renamed getCountriesByCapital to getCountryByCapital for consistency.
29
likes
150
points
4
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart package that acts as a wrapper for the REST Countries API, providing easy access to countries data.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

http

More

Packages that depend on rest_countries_data