FirebaseRemoteConfigPlatform class abstract

The interface that implementations of firebase_remote_config must extend.

Platform implementations should extend this class rather than implement it as firebase_remote_config does not consider newly added methods to be breaking changes. Extending this class (using extends) ensures that the subclass will get the default implementation, while platform implementations that implements this interface will be broken by newly added FirebaseRemoteConfigPlatform methods.

Inheritance
  • Object
  • PlatformInterface
  • FirebaseRemoteConfigPlatform

Constructors

FirebaseRemoteConfigPlatform({FirebaseApp? appInstance})
Create an instance using app.
FirebaseRemoteConfigPlatform.instanceFor({required FirebaseApp app, Map? pluginConstants})
Create instance using app using the existing implementation.
factory

Properties

app → FirebaseApp
Returns the FirebaseApp for the current instance.
latefinal
appInstance → FirebaseApp?
The FirebaseApp this instance was initialized with.
final
hashCode int
The hash code for this object.
no setterinherited
lastFetchStatus RemoteConfigFetchStatus
Returns the status of the last fetch attempt.
no setter
lastFetchTime DateTime
Returns the DateTime of the last successful fetch.
no setter
onConfigUpdated Stream<RemoteConfigUpdate>
Get a Stream of RemoteConfigUpdates.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settings RemoteConfigSettings
Returns the RemoteConfigSettings of the current instance.
no setter

Methods

activate() Future<bool>
Makes the last fetched config available to getters.
delegateFor({required FirebaseApp app}) FirebaseRemoteConfigPlatform
Enables delegates to create new instances of themselves if a none default FirebaseApp instance is required by the user.
ensureInitialized() Future<void>
Ensures the last activated config are available to getters.
fetch() Future<void>
Fetches and caches configuration from the Remote Config service.
fetchAndActivate() Future<bool>
Performs a fetch and activate operation, as a convenience.
getAll() Map<String, RemoteConfigValue>
Returns a Map of all Remote Config parameters.
getBool(String key) bool
Gets the value for a given key as a bool.
getDouble(String key) double
Gets the value for a given key as a double.
getInt(String key) int
Gets the value for a given key as an int.
getString(String key) String
Gets the value for a given key as a String.
getValue(String key) RemoteConfigValue
Gets the RemoteConfigValue for a given key.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setConfigSettings(RemoteConfigSettings remoteConfigSettings) Future<void>
Sets the RemoteConfigSettings for the current instance.
setDefaults(Map<String, dynamic> defaultParameters) Future<void>
Sets the default parameter values for the current instance.
setInitialValues({required Map remoteConfigValues}) FirebaseRemoteConfigPlatform
Sets any initial values on the instance.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance FirebaseRemoteConfigPlatform
The current default FirebaseRemoteConfigPlatform instance.
getter/setter pair