E2EFileTranslationLoader class

Special loader for solving isolates problem with flutter drive

Inheritance

Constructors

E2EFileTranslationLoader({dynamic forcedLocale, dynamic fallbackFile = "en", dynamic basePath = "assets/flutter_i18n", dynamic useCountryCode = false, bool useE2E = true, dynamic decodeStrategies})

Properties

assetBundle ↔ AssetBundle
read / writeinherited
basePath → String
finalinherited
customAssetBundle ↔ AssetBundle
read / write
decodeStrategies ← List<BaseDecodeStrategy>?
write-onlyinherited
fallbackFile → String
finalinherited
forcedLocale ← Locale?
Used to force the locale to load
write-onlyinherited
hashCode → int
The hash code for this object.
read-onlyinherited
locale ↔ Locale?
Currently locale used by the library
read / writeinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
useCountryCode → bool
finalinherited
useE2E → bool
final
useScriptCode → bool
finalinherited

Methods

composeFileName() → String
Compose the file name using the format languageCode_countryCode
inherited
findDeviceLocale() → Future<Locale>
Return the device current locale
inherited
load() → Future<Map>
Return the translation Map
inherited
loadFile(String fileName) → Future<Map>
Load the fileName using one of the strategies provided
inherited
loadString(String fileName, String extension) → Future<String>
Method used to load string from the _CustomAssetBundle
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