RemoteConfigAssetLoader class
An AssetLoader that sources translations from FirebaseRemoteConfigService.
Bridges easy_localization's AssetLoader interface into Firebase Remote
Config so that translation maps can be updated over-the-air without an app
release. The path argument required by the interface is unused — all data
comes from FirebaseRemoteConfigService.getTranslation.
- Inheritance
-
- Object
- AssetLoader
- RemoteConfigAssetLoader
Constructors
- RemoteConfigAssetLoader({required FirebaseRemoteConfigService remoteConfigService, required AppLogger logger})
-
Creates a loader backed by
remoteConfigService, usingloggerto report fetch failures.
Properties
- 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(
String path, Locale locale) → Future< Map< String, dynamic> > -
Returns the translation map for
localefrom Firebase Remote Config.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