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<String, String>> map)
Create a MapLocalizationLoader based on the map.

Properties

hashCode int
The hash code for this object.
no setterinherited
map Map<String, Map<String, String>>
The map between a language code and the localizations for this language.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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