LocaleSettings class
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 Properties
- baseLocale → AppLocale
-
Gets base locale.
no setter
- currentLocale → AppLocale
-
Gets current locale.
no setter
-
supportedLocales
→ List<
Locale> -
Gets supported locales (as Locale objects) with base locale sorted first.
no setter
-
supportedLocalesRaw
→ List<
String> -
Gets supported locales in string format.
no setter
Static Methods
-
setLocale(
AppLocale locale) → AppLocale - Sets locale Returns the locale which has been set.
-
setLocaleRaw(
String rawLocale) → AppLocale - Sets locale using string tag (e.g. en_US, de-DE, fr) Fallbacks to base locale. Returns the locale which has been set.
-
useDeviceLocale(
) → AppLocale - Uses locale of the device, fallbacks to base locale. Returns the locale which has been set.