rest_countries_data 1.0.2
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_dataDart package. - Provides a wrapper around the restcountries.com API.
- Features include:
getAllCountrieswith field filtering (max 10)getCountryByCode,getCountriesByCodesgetCountriesByCurrency,getCountriesByLanguagegetCountriesByCapital,getCountriesByRegion,getCountriesBySubRegiongetCountryByName,getCountryByFullNamegetCountriesByTranslationgetCountriesByDemonymgetCountriesByIndependentStatus
- Includes example usage in
/examplefolder.
1.0.1 - 2025-07-23 #
1.0.2 - 2025-07-25 #
Added #
toTrim()method for all parameters to sanitize input data.toString()override method forCountryModelto improve debug readability.getCountryPhoneNumberCodegetter to the CountryModel to return country phone dialing code.- Unit test to verify
CountryModel.getCountryPhoneNumberCode.
Changed #
- Renamed
getCountriesByCapitaltogetCountryByCapitalfor consistency.