Config class abstract

A base class that manages the application's Config and provides the functionality to notify changes.

When the value of Config is changed, please call onChange on the implementation side.

See also:

RemoteConfig, LocalConfig

Inheritance
Mixed in types
Implementers

Constructors

Config()

Properties

disposed bool
Indicates whether the configuration has been disposed.
no setter
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 setter
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.
override
init() Future<void>
Initializes the configuration.
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.
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
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

Constants

defaultValueForBool → const bool
Default value for configuration items of type Boolean. If a configuration item of type Boolean is not set, this value will be used.
defaultValueForDouble → const double
Default value for configuration items of type Double. If a configuration item of type Double is not set, this value will be used.
defaultValueForInt → const int
Default value for configuration items of type Integer. If a configuration item of type Integer is not set, this value will be used.
defaultValueForString → const String
Default value for configuration items of type String. If a configuration item of type String is not set, this value will be used.