sync library Null safety
Classes
- And
- Generate a required condition.
- Collection
- ConnectOfflineFirstWithRest
- An annotation used to specify a class to generate code for. [...]
- DataClass
- OfflineFirst
-
Low-level field config for the
OfflineFirst
domain. - OfflineFirstModel
- This model is constructed by data in SQLite. It hydrates from a REST endpoint. [...]
-
OfflineFirstSerdes<
_RemoteSerializeType, _SqliteSerializeType> -
A class that isn't connected to the
OfflineFirstRepository
but is still used byOfflineFirstModels
(such as aCash
class that declaresamount
andcurrency
). OfflineFirstSerdes must extend the class in end implementation. [...] -
OfflineFirstWithRestAdapter<
_Model extends OfflineFirstWithRestModel> - This adapter fetches first from SqliteProvider then hydrates with RestProvider.
- OfflineFirstWithRestModel
- OfflineFirstWithRestRepository
-
Ensures the remoteProvider is a RestProvider. All requests to and
from the remoteProvider pass through a seperate SQLite queue. If the app
is unable to make contact with the remoteProvider, the queue automatically retries in
sequence until it receives a response. Please note that a response may still be an error
code such as
404
or500
. The queue is only concerned with connectivity. [...] - Or
- Generate an optional condition.
- Query
-
An interface to request data from a Provider or
Repository
. - Rest
- An annotation used to specify how a field is serialized for a RestAdapter. Heavily inspired by JsonKey
- RestProvider
- Retrieves from an HTTP endpoint
- RestSerializable
- An annotation used to specify a class to generate code for. [...]
- Sqlite
- An annotation used to specify how a field is serialized. Heavily inspired by JsonKey
- SqliteProvider
- Retrieves from a Sqlite database
- SqliteSerializable
- An annotation used to specify a class to generate code for. [...]
- SyncBindings
- SyncConfig
- SyncController
- SyncEndpointHelper
- SyncGeneratorHelper
- SyncModel
-
SyncModelController<
T extends OfflineFirstWithRestModel> - Sync Model Controller
- SyncRepository
- Where
- WhereCondition
-
Lower-level control over the value of a
Query#where
map. [...] - WherePhrase
Functions
-
collectionEquals(
dynamic e1, dynamic e2) → bool -
mapPropsToHashCode(
Iterable props) → int
Enums
- Compare
-
Specify how to evalute the
value
against theevaluatedField
in a WhereCondition. For size operators, a left side comparison is done. [...] - FieldRename
- Values for the automatic field renaming behavior for RestSerializable. [...]
- QueryAction
- How the query interacts with the provider
- SyncModelState
- SyncState
Exceptions / Errors
- OfflineFirstException
- RestException
- An error class exclusive to the RestProvider