RemoteConfig class

The entry point for accessing Remote Config.

You can get an instance by calling RemoteConfig.instance. Note RemoteConfig.instance is async.

Inheritance

Constructors

RemoteConfig()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
hasListeners bool
Whether any listeners are currently registered. [...]
@protected, read-only, inherited
lastFetchStatus LastFetchStatus
read-only
lastFetchTime DateTime
read-only
remoteConfigSettings RemoteConfigSettings
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

activateFetched() Future<bool>
Activates the fetched config, makes fetched key-values take effect. [...]
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 and removeListener will throw after the object is disposed). [...]
@mustCallSuper, inherited
fetch({Duration expiration = const Duration(hours: 12)}) Future<void>
Fetches parameter values for your app. [...]
getAll() Map<String, RemoteConfigValue>
Gets all RemoteConfigValue. [...]
getBool(String key) bool
Gets the value corresponding to the key as a bool. [...]
getDouble(String key) double
Gets the value corresponding to the key as a double. [...]
getInt(String key) int
Gets the value corresponding to the key as an int. [...]
getString(String key) String
Gets the value corresponding to the key as a String. [...]
getValue(String key) RemoteConfigValue
Gets the RemoteConfigValue corresponding to the key. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
notifyListeners() → void
Call all the registered listeners. [...]
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>
Set the configuration settings for this RemoteConfig instance. [...]
setDefaults(Map<String, dynamic> defaults) Future<void>
Sets the default config. [...]
toString() String
A string representation of this object. [...]
inherited

Operators

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

Static Properties

instance Future<RemoteConfig>
Gets the instance of RemoteConfig for the default Firebase app.
read-only

Constants

channel → const MethodChannel
MethodChannel('plugins.flutter.io/firebase_remote_config')
defaultValueForBool → const bool
false
defaultValueForDouble → const double
0.0
defaultValueForInt → const int
0
defaultValueForString → const String
''