I18nLocalizations class

Constructors

I18nLocalizations(Locale locale, List<Locale> supportedLocales, String pathFile, bool haveCountryCode)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
haveCountryCode bool
final
locale Locale
final
localizedMap Map
read / write
pathFile String
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
supportedLocales List<Locale>
final

Methods

load() Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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 Methods

of(BuildContext context) I18nLocalizations
translate(BuildContext context, String key, {Map<String, String> params}) String
This method will be called from every widget which needs a localized text
translatePlural(BuildContext context, String key, {Map<String, String> params}) String
This method will be called from every widget which needs a localized text which may plural