ReadWriteValue<T> class
Represents a read-write value with an associated key and default value.
This class provides convenient access to read and write values from a storage container.
Constructors
- ReadWriteValue(String key, T defaultValue, [StorageFactory? getBox])
-
Constructs a ReadWriteValue instance with the given
key,defaultValue, and an optionalgetBoxfactory function.
Properties
- defaultValue → T
-
The default value.
final
- getBox → StorageFactory?
-
The factory function to obtain the storage container.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String
-
The key associated with the value.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- val ↔ T
-
Retrieves the current value associated with the key.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited