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

basePath String
final
hashCode int
The hash code for this object.
no setterinherited
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