Repository<T extends Model> class abstract

A Repository interface

Generic Interface boundary for data persistence/gateway Objects

Constructors

Repository()

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

create(T model) Future<T>
Create a model in the repository

The model is created in the repository
delete(T model) Future<T>
Delete a model from the repository

The model is deleted from the repository
get() Future<T>
Get a model from the repository
getAll() Future<List<T>>
Get a list of models from the repository

The models are retrieved from the repository
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
update(T model) Future<T>
Update a model in the repository

The model is updated with the new data

Operators

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