ItemHolderApi<E extends Object> class abstract interface

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

exists Future<bool>
Returns true if the item exists in the storage.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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