I18N class

Constructors

I18N()
factory

Properties

currentLocale ValueNotifier<Locale?>
no setter
hashCode int
The hash code for this object.
no setterinherited
i18nMap I18NMap?
Getter for current & valid I18NMap
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

allLocale() List<Locale>?
Returns all Locale as List from current I18NMap
getI18nString(String key, Locale? locale) → dynamic
Returns a specific String from the current language set Parameter key must not be null If parameter locale equals null, the current language set will be determined by the value of _currentLocale
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setCurrentLocale(Locale? locale) → void
Parameter locale will be set as the value of ValueNotifer _currentLocale If you want to change the language throughout all I18NText widgets do it with this function
seti18nMap(I18NMap i18nMap) → void
This function is setting the Parameter i18nMap But only if the given i18nMap is valid.
toString() String
A string representation of this object.
inherited

Operators

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