HydratedStorage class abstract
Storage interface for persisting and retrieving state
- Implementers
Constructors
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 values from storage
-
close(
) → Future< void> - Closes the storage instance
-
delete(
String key) → Future< void> -
Deletes value from storage for the given
key -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
String key) → dynamic -
Reads value from storage for the given
key -
toString(
) → String -
A string representation of this object.
inherited
-
write(
String key, dynamic value) → Future< void> -
Writes
valueto storage for the givenkey
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ HydratedStorage?
-
Returns singleton instance of HydratedStorage
getter/setter pair