FakeRemoteConfig class

Fake implementation of FirebaseRemoteConfig for testing.

Implemented types
  • FirebasePluginPlatform
Mixed in types

Constructors

FakeRemoteConfig()

Properties

app → FirebaseApp
The FirebaseApp this instance was initialized with.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
lastFetchStatus → RemoteConfigFetchStatus
Returns the status of the last fetch attempt.
no setteroverride
lastFetchTime DateTime
Returns the DateTime of the last successful fetch.
getter/setter pairoverride-getter
onConfigUpdated Stream<RemoteConfigUpdate>
Starts listening for real-time config updates from the Remote Config backend and automatically fetches updates from the RC backend when they are available.
no setteroverride
pluginConstants Map
Returns any plugin constants this plugin app instance has initialized.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settings ↔ RemoteConfigSettings
Returns the RemoteConfigSettings of the current instance.
getter/setter pairoverride-getter

Methods

activate() Future<bool>
Makes the last fetched config available to getters.
override
addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
ensureInitialized() Future<void>
Ensures the last activated config are available to getters.
override
fetch() Future<void>
Fetches and caches configuration from the Remote Config service.
override
fetchAndActivate() Future<bool>
Performs a fetch and activate operation, as a convenience.
override
getAll() Map<String, RemoteConfigValue>
Returns a Map of all Remote Config parameters.
override
getBool(String key) bool
Gets the value for a given key as a bool.
override
getDouble(String key) double
Gets the value for a given key as a double.
override
getInt(String key) int
Gets the value for a given key as an int.
override
getString(String key) String
Gets the value for a given key as a String.
override
getValue(String key) → RemoteConfigValue
Gets the RemoteConfigValue for a given key.
override
loadMockData(Map<String, dynamic> data) → void
Load mocked data into the FakeRemoteConfig. You still need to call fetchAndActivate to activate the data.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
setConfigSettings(RemoteConfigSettings remoteConfigSettings) Future<void>
Sets the RemoteConfigSettings for the current instance.
override
setDefaults(Map<String, dynamic> defaultParameters) Future<void>
Sets the default parameter values for the current instance. Only booleans, strings and numbers are supported as values of the map
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited