LocalizationConfig class

A class to configure the localization package.

Constructors

LocalizationConfig({required List<UiLanguage> supportedLanguages, required UiLanguage fallbackLanguage})

Properties

fallbackLanguage UiLanguage
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supportedLanguages List<UiLanguage>
final
supportedLocales List<Locale>
final

Methods

isLanguageSupported(UiLanguage language) bool
Checks if the given language is supported.
isLocaleSupported(Locale locale) bool
Checks if the given locale is supported.
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 Properties

instance LocalizationConfig
no setter

Static Methods

initialize(LocalizationConfig config) → void