HydratedStorage class abstract

Interface which is used to persist and retrieve state changes.

Constructors

HydratedStorage()

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
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) Object?
Returns value for key
toString() String
A string representation of this object.
inherited
write(String key, Object? value) Future<void>
Persists key value pair

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

storage HydratedStorage
Instance of HydratedStorage which will be used to manage persisting/restoring the StateNotifier state.
getter/setter pair

Static Methods

setStorageNull() → dynamic