Defines the interface for a holder of a single item of type E.
This interface provides a wrapper API for managing a single item in storage. This allows to manage a single key in isolation from other stored data.
Type parameters:
E- The type of the item to store.
- Implementers
Properties
Methods
-
dispose(
) → void - Disposes any resources held by the item holder.
-
get(
) → Future< E?> - Retrieves the item from the storage.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
) → Future< void> - Removes the item from the storage.
-
set(
E value) → Future< void> - Saves the item to the storage.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited