L10n class

Localization of this application.

Constructors

L10n()

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

chosen Rx<Language?>
Currently selected Language.
final
languages List<Language>
Supported Languages.
getter/setter pair

Static Methods

init([Language? lang]) Future<void>
Initializes this L10n with the default Locale of the device, or optionally with the provided Language.
set(Language? lang, {bool refresh = true}) Future<void>
Sets the chosen language to the provided Language.