CountryLocalizations class

Localization class that contains the different country name strings translated into the locales that the package supports.

You can read more at:

Constructors

CountryLocalizations(Locale locale)
Localization class that contains the different country name strings translated into the locales that the package supports.

Properties

hashCode → int
The hash code for this object.
no setterinherited
locale → Locale
An identifier used to select a user's language and formatting preferences.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

languages() → List<String>
Gets all of the available languages.
load() → Future<void>
Loads the localized country values from supported language codes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
translation(String countryCode) → String
Convenient getter for translation.

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

of(BuildContext context) → CountryLocalizations?
Reference for lookup objects that contain collections of localized values.

Constants

delegate → const LocalizationsDelegate<CountryLocalizations>
Delegate to access defined localized resources from this package.
supportedLocales → const List<String>
Importable list of supported locales.