LocaleSettings class

Manages all translation instances and the current locale

Inheritance
Available Extensions

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
translationMap Map<AppLocale, _StringsEn>
Internal: Manages all translation instances May be modified when setting a custom plural resolver
finalinherited
utils BaseAppLocaleUtils<AppLocale, _StringsEn>
Internal: Reference to utils instance
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateProviderState(AppLocale locale, _StringsEn translations) → void
Updates the provider state and therefore triggers a rebuild on all widgets listening to this provider.
inherited

Operators

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

Static Properties

currentLocale AppLocale
read-only
instance LocaleSettings
final
supportedLocales List<Locale>
read-only
supportedLocalesRaw List<String>
read-only

Static Methods

getLocaleStream() Stream<AppLocale>
setLocale(AppLocale locale) AppLocale
setLocaleRaw(String rawLocale) AppLocale
setPluralResolver({String? language, AppLocale? locale, PluralResolver? cardinalResolver, PluralResolver? ordinalResolver}) → void
useDeviceLocale() AppLocale