Language class

Language is a class that helps you to create multi-language app.

Constructors

Language()

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

currentLanguage Map<String, dynamic>
User's language data.
getter/setter pair
languages List<String>
List of supported languages. (e.g. "en_US", "ja_JP")
final

Static Methods

getText(String key) String
Get the text from the current language.
init(List<String> langs) Future<void>
Initialize the languages.
loadLanguage(String language) Future<bool>
Load the language data from the assets.