AssetTranslationLoader class
- Implemented types
- Annotations
Constructors
- AssetTranslationLoader(String asset, {String? package})
- Creates a TranslationLoader instance that loads from local asset files. When loading from a package, you must pass the name of the package via the package optional parameter. The asset must be a JSON key / value map.
Properties
Methods
-
load(
String language, Translator translator) → Future< Map< String, String> > -
The returned Future will wait until the JSON asset is loaded and
processed and then resolve with resulting values.
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