SingleProviderRepository<_Model extends Model> class

Helper for mono provider systems

Implemented types

Constructors

SingleProviderRepository(Provider<_Model> provider)
const

Properties

provider Provider<_Model>
The only provider for the store
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

delete<T extends _Model>(T instance, {Query query}) FutureOr<bool>
Remove models from providers
override
get<T extends _Model>({Query query}) FutureOr<List<T>>
Query provider for raw data and convert to an app model
override
initialize() Future<void>
Perform required setup work. For example, migrating a database, starting a queue, or authenticating with a Provider's service.
override
upsert<T extends _Model>(T instance, {Query query}) FutureOr<T>
Query provider for raw data and convert to an app model
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited