core library
Classes
-
Adapter<
_Model extends Model> -
An adapter is a factory that produces an app Model. In an effort to normalize data input and
output between Providers, subclasses must pass the data in
Map<String, dynamic>
format. - And
- Generate a required condition.
- LimitBy
- Construct directions for a provider to limit its results.
- Model
- A model can be queried by the ModelRepository, and if merited by the ModelRepository implementation, the Provider. Subclasses may extend Model to include Repository-specific needs, such as an HTTP endpoint or a table name.
-
ModelDictionary<
ImplementationModel extends Model, ImplementationAdapter extends Adapter< ImplementationModel> > - A modelDictionary points a Provider to the Model's Adapter. The Provider uses it to construct app models from raw data.
-
ModelRepository<
ManagedModel extends Model> - A ModelRepository is the top-level means of relaying data between Models and Providers. A conventional implementation would adhere to the singleton pattern.
- Or
- Generate an optional condition.
- OrderBy
- Construct directions for a provider to sort its results.
-
Provider<
TModel extends Model> - A Provider fetches raw data and creates Models. An app can have many Providers.
-
ProviderQuery<
T extends Provider< Model> > - Specify query arguments that are exclusive to a specific Provider. For example, configuring a REST's POST method.
- Query
- An interface to request data from a Provider or ModelRepository.
-
SingleProviderRepository<
TModel extends Model> - Helper for mono provider systems
- Where
-
A condition that evaluates to
true
in the Provider should return Model. - WhereCondition
-
Lower-level control over the value of a
Query#where
map. - WherePhrase
- A collection of conditions that are evaluated together.
Enums
- Compare
- Specify how to evalute the WhereCondition.value against the WhereCondition.evaluatedField in a WhereCondition. For size operators, a left side comparison is done.
- QueryAction
- How the query interacts with the provider