brick_offline_first library

Classes

And
Generate a required condition.
OfflineFirst
Low-level field config for the OfflineFirst domain.
OfflineFirstAdapter<_Model extends OfflineFirstModel>
This adapter fetches first from SqliteProvider then hydrates with from a remote provider..
OfflineFirstModel
This model is constructed by data in SQLite. It hydrates from a REST endpoint.
OfflineFirstRepository<RepositoryModel extends OfflineFirstModel>
A ModelRepository that interacts with a SqliteProvider first before using a Provider from a remote source.
OfflineFirstSerdes<RemoteSerializeType, SqliteSerializeType>
A class that isn't connected to the OfflineFirstRepository but is still used by OfflineFirstModels (such as a Cash class that declares amount and currency). OfflineFirstSerdes must extend the class in end implementation.
Or
Generate an optional condition.
Query
An interface to request data from a Provider or Repository.
RuntimeOfflineFirstDefinition
Used to define types in OfflineFirstAdapter#fieldsToOfflineFirstRuntimeDefinition. The build runner package extracts types and associations that would've been otherwise inaccessible at runtime.
Where
WhereCondition
Lower-level control over the value of a Query#where map.
WherePhrase

Enums

Compare
Specify how to evalute the value against the evaluatedField in a WhereCondition. For size operators, a left side comparison is done.
OfflineFirstDeletePolicy
OfflineFirstGetPolicy
Data will always be returned from local providers and never directly from a remote provider(s)
OfflineFirstUpsertPolicy
QueryAction
How the query interacts with the provider

Exceptions / Errors

OfflineFirstException