ReadableConfig mixin

Provides an interface to read values from Config.

Superclass Constraints
Mixin Applications

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
getBool(String key, {bool defaultValue = Config.defaultValueForBool}) bool
Returns the value corresponding to the given key as a Boolean.
getDouble(String key, {double defaultValue = Config.defaultValueForDouble}) double
Returns the value corresponding to the given key as a Double.
getInt(String key, {int defaultValue = Config.defaultValueForInt}) int
Returns the value corresponding to the given key as an Integer.
getString(String key, {String defaultValue = Config.defaultValueForString}) String
Returns the value corresponding to the given key as a String.
hasKey(String key) bool
Checks if the given key exists in the configuration.
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.
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