IBaseSource<T extends BaseEntityDataModel> class
abstract
An abstract class that defines the basic operations for a data source.
This class provides methods for adding, updating, deleting, and retrieving data items.
The type parameter T must extend BaseDataModel.
Constructors
Properties
- data ↔ T?
-
The data item of type
T.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addDataItem(
) → Future - Adds a data item.
-
deleteDataItem(
String id) → Future -
Deletes a data item identified by the given
id. -
getAllDataList(
) → Future< List< T> > - Retrieves a list of all data items.
-
getData(
Query< Object?> query(Query<Object?> query)?) → Future<List< T> > - Retrieves a list of data items based on the given query.
-
getDataItem(
String id) → Future< T> -
Retrieves a data item identified by the given
id. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateDataItem(
String id) → Future -
Updates a data item identified by the given
id.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited