Storage class abstract
Interface which is used to persist and retrieve state changes.
- Implementers
Constructors
- Storage()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → Future< void> - Clears all key value pairs from storage
-
close(
) → Future< void> - Close the storage instance which will free any allocated resources. A storage instance can no longer be used once it is closed.
-
delete(
String key) → Future< void> - Deletes key value pair
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
String key) → dynamic - Returns value for key
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
String key, dynamic value) → Future< void> - Persists key value pair
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited