MemoryStorage<E> class
In-memory implementation of Storage. Mind that this is volatile storage.
- Implemented types
-
- Storage<
E>
- Storage<
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
-
delete(
) → Future< void> -
Deletes any written item. If no item is found completes without error.
override
-
get(
) → Future< E?> -
Retrieves the saved item or returns
null
if no item is found.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
save(
E item) → Future< E> -
Saves the given item, overriding any previous entries.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited