SingleProviderRepository<TModel extends Model> class abstract

Helper for mono provider systems

Implemented types

Constructors

SingleProviderRepository(Provider<TModel> provider)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
provider Provider<TModel>
The only provider for the store
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete<T extends TModel>(T instance, {Query? query}) FutureOr<bool>
Remove models from providers
override
get<T extends TModel>({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
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
upsert<T extends TModel>(T instance, {Query? query}) FutureOr<T>
Query provider for raw data and convert to an app model
override

Operators

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