RemoteConfig class abstract

Abstract class for the RemoteConfig.

Inherit this class to create the RemoteConfig class.

Inheritance
Mixed in types
Implementers

Constructors

RemoteConfig()

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
dispose() → void
Disposes the configuration.
inherited
fetch({Duration expiration = const Duration(hours: 5), bool force = false}) Future<void>
Fetches configuration data from a remote server.
getBool(String key, {bool defaultValue = Config.defaultValueForBool}) bool
Returns the value corresponding to the given key as a Boolean.
inherited
getDouble(String key, {double defaultValue = Config.defaultValueForDouble}) double
Returns the value corresponding to the given key as a Double.
inherited
getInt(String key, {int defaultValue = Config.defaultValueForInt}) int
Returns the value corresponding to the given key as an Integer.
inherited
getString(String key, {String defaultValue = Config.defaultValueForString}) String
Returns the value corresponding to the given key as a String.
inherited
hasKey(String key) bool
Checks if the given key exists in the configuration.
inherited
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
setDefaults(Map<String, Object> defaults) Future<void>
Sets the default values for the configuration.
inherited
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