SimpleLocalizations class

Class to implement localizations in your packages and applications simply.

Constructors

SimpleLocalizations(Locale locale)

Properties

currentLocale Locale
read-only
customValues Map<String, Map<dynamic, String>>
Custom values, used to modify certain values, this property should only be used in custom package locations that use internationalization.
read-only
defaultLocale Locale
If your device location is not supported, this will be the default location to use
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
localizedValues Map<String, Map<dynamic, String>>
Message values to be used by your app for all supported locations.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
suportedLocales Iterable<Locale>
Locations supported by your app
read-only

Methods

getLocalizedValue(dynamic localizedName) String
Operator to get message to use
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
operator [](dynamic message) String
Operator to get message to use

Static Methods

of<T>(BuildContext context, T orDefault(Locale locale)) → T
Get current location