MapLocalizationLoader class
A LocalizationLoader which can load translations from a map.
map must map a language code to a map of translations keys mapped to translations (i.e., a map of maps).
{
'en': {'header':'This is a header', ...},
'da': {'header':'Dette er en overskrift', ...},
}
- Implemented types
Constructors
-
MapLocalizationLoader(Map<
String, Map< map)String, String> > -
Create a MapLocalizationLoader based on the
map
.
Properties
Methods
-
load(
Locale locale) → Future< Map< String, String> > -
Load translations for
locale
.override -
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