IBaseDataActionsSource<T extends BaseEntityDataModel> class
abstract
An abstract class that defines standard CRUD actions for data sources.
The type parameter T represents the type of data item this source manages.
- Implementers
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
-
addDataItem(
{String? id}) → Future< Result< RemoteBaseModel, RemoteBaseModel> > - Adds a new data item.
-
deleteDataItem(
String id) → Future< Result< RemoteBaseModel, RemoteBaseModel> > -
Deletes a data item identified by
id. -
editeDataItem(
String id) → Future< Result< RemoteBaseModel, RemoteBaseModel> > -
Edits an existing data item identified by
id. -
getDataList(
) → Future< Result< RemoteBaseModel, RemoteBaseModel< >List< >T> > - Retrieves a list of data items.
-
getSingleData(
String id) → Future< Result< RemoteBaseModel, RemoteBaseModel< >T> > -
Retrieves a single data item identified by
id. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited