I18n class
Properties
hashCode
→ int
The hash code for this object.
read-only inherited
hasListeners
→ bool
Whether any listeners are currently registered.
isRtl
→ bool
returns the current boolean state of rtl in the current langauge
read-only
lang
→ Map <String , dynamic >
lang returns a copy of the current langauge
read-only
runtimeType
→ Type
A representation of the runtime type of the object.
read-only inherited
Methods
addListener (VoidCallback listener )
→ void
Register a closure to be called when the object changes.
inherited
dispose ()
→ void
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
keyExistsOrError (Map src , String key )
→ bool
inherited
load ({Map <String , dynamic > fallback } )
→ Future <bool >
loads the language from the storage , and intializes it
fallback
will be used in case no language was found
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a non-existent method or property is accessed.
inherited
notifyListeners ()
→ void
Call all the registered listeners.
persist ()
→ Future <bool >
persists the current language to the storage
removeListener (VoidCallback listener )
→ void
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
setLocale (String key )
→ Future <bool >
updates the lanauge to locale
String.
locale
must be a string that is registerd throgh Registry.register
method
the method will perform a call to I18n.persist to persist the langauge
toString ()
→ String
A string representation of this object.
inherited
simple_flutter_i18n
1.2.3+1