DataRepository<T> class
abstract
Interface for implementing block-data (whole object) repositories.
The implementation of this interface must allow to save a single entire object in a persistence system, retrieving it from the same system and removing it.
- Implementers
Constructors
Properties
-
content
→ Future<
T?> -
Reads the content of the whole object stored inside the persistence system.
Returns
nullif it cannot read the object.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
-
deleteContent(
) → Future< void> - Removes the object from the persistence system. It can also unmount the persistence system if it is no longer useful.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
saveContent(
T content) → Future< void> -
Stores the object
contentof typeTinside the predefined (by the implementer) persistent system. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited