AssetLocalizationLoader class
A LocalizationLoader which can load translations from file assets
bundles. Remember to add the language file assets to the
pubspec.yaml
file.
- Implemented types
Constructors
- AssetLocalizationLoader({String basePath = 'assets/lang'})
-
Create a asset location loader.
Loads from
assets/lang
per default.const
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