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

Constructors

RemoteConfigAssetLoader({required FirebaseRemoteConfigService remoteConfigService, required AppLogger logger})
Creates a loader backed by remoteConfigService, using logger to 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 locale from 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