DataRepository<D extends EntityModel, R extends EntitySearchModel> class abstract

DataRepository is an abstract class that defines the interface for a data repository. It has two type parameters: D for the entity model and R for the entity search model.

Implementers

Constructors

DataRepository()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type DataModelType
The type getter returns the type of the data model.
no setter

Methods

create(D entity) FutureOr
The create method creates a new entity.
delete(D entity) FutureOr
The delete method deletes an existing entity.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
The search method searches for entities that match the given query.
toString() String
A string representation of this object.
inherited
update(D entity) FutureOr
The update method updates an existing entity.

Operators

operator ==(Object other) bool
The equality operator.
inherited