Provider<_Model extends Model> class

A Provider fetches raw data and creates Models. An app can have many Providers.

Constructors

Provider()
const

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
modelDictionary ModelDictionary<Model, Adapter<Model>>
The translation between Adapters and Models
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

delete<T extends _Model>(T instance, {Query query, ModelRepository<_Model> repository}) → dynamic
Remove a model instance
get<T extends _Model>({Query query, ModelRepository<_Model> repository}) → dynamic
Query for raw data and construct it with an Adapter
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
upsert<T extends _Model>(T instance, {Query query, ModelRepository<_Model> repository}) → dynamic
Insert or update a model instance

Operators

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