OpenFoodFactsCountryLocalization extension

Extension on countries and their localizations.

on

Properties

localizedName → String

Available on OpenFoodFactsCountry, provided by the OpenFoodFactsCountryLocalization extension

no setter

Static Methods

filterCountries(List<Country> countries, Country? userCountry, Country? selectedCountry, String? filter) → Iterable<Country>

Available on OpenFoodFactsCountry, provided by the OpenFoodFactsCountryLocalization extension

reorderCountries(List<Country> countries, String? userCountryCode) → void

Available on OpenFoodFactsCountry, provided by the OpenFoodFactsCountryLocalization extension

Reorder countries alphabetically, bring user's locale country to top.
setLocale(String? languageCode) → void

Available on OpenFoodFactsCountry, provided by the OpenFoodFactsCountryLocalization extension