CountryNameL10n class
Provides country name translations keyed by ISO 639-1 language code and ISO 3166-1 alpha-2 country code.
All data is compile-time constant and has zero runtime dependencies.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getLocalizedName(
String alpha2Code, String languageCode) → String? -
Returns the localized country name, or
nullif unavailable. -
getTranslationsForLocale(
String languageCode) → Map< String, String> ? - Returns the full translation map for a given language code.
Constants
-
supportedLocales
→ const List<
String> - All supported language / locale codes.