ProxyRemoteConfig class
Class for managing all RemoteConfig used by the app.
Access to RemoteConfig is usually done through this class. example
getApp().remoteConfig.getBool('key');
- Inheritance
-
- Object
- ChangeNotifier
- Config
- RemoteConfig
- ProxyRemoteConfig
Constructors
Properties
- disposed → bool
-
Indicates whether the configuration has been disposed.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- initialized → bool
-
Indicates whether the configuration has been initialized.
no setterinherited
-
methodCallLogs
→ List<
MethodCall> -
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
addRemoteConfig(
RemoteConfig remoteConfig) → Future< void> - Adds RemoteConfig passed as an argument to the list of managed configs.
-
dispose(
) → void -
Disposes all the RemoteConfig instances managed by this class.
override
-
fetch(
{Duration expiration = const Duration(hours: 5), bool force = false}) → Future< void> -
Fetch data from all RemoteConfig's managed by the app.
override
-
getBool(
String key, {bool defaultValue = Config.defaultValueForBool}) → bool -
Retrieve a bool value from RemoteConfig
override
-
getDouble(
String key, {double defaultValue = Config.defaultValueForDouble}) → double -
Retrieve a double value from RemoteConfig
override
-
getInt(
String key, {int defaultValue = Config.defaultValueForInt}) → int -
Retrieve a int value from RemoteConfig
override
-
getString(
String key, {String defaultValue = Config.defaultValueForString}) → String -
Retrieve a String value from RemoteConfig
override
-
hasKey(
String key) → bool -
Checks if the given
key
exists in any of the RemoteConfig instances.override -
init(
) → Future< void> -
Initializes the configuration.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
onChange(
) → void -
The value of Config has been changed.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
removeRemoteConfig(
RemoteConfig remoteConfig) → void - Removes RemoteConfig passed as an argument from the list of managed configs.
-
setDefaults(
Map< String, Object> defaults) → Future<void> -
Sets the default values for the RemoteConfig instances managed by this class.
override
-
setMockMethodCallHandler(
) → void -
A function for mocking a MethodChannel.
inherited
-
setMockStreamHandler(
) → void -
A function for mocking a MockStreamHandler.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited