Synchronization orchestrator interface.
- Sends accumulated pending ops from local to remote.
- Fetches delta from remote and merges using
ConflictResolver
. - Updates local state and persists the sync point.
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
local
→ LocalStore<
T, Id> -
no setter
-
remote
→ RemoteStore<
T, Id> -
no setter
-
resolver
→ ConflictResolver<
T> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
enqueueCreate(
SyncScope scope, Id id, T payload) → Future< void> - Enqueue local ops and attempt background sync when possible.
-
enqueueDelete(
SyncScope scope, Id id) → Future< void> -
enqueueUpdate(
SyncScope scope, Id id, T payload) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
SyncScope scope, {CachePolicy policy}) → Future< List< T> > -
readWith(
SyncScope scope, QuerySpec spec, {CachePolicy policy = CachePolicy.remoteFirst, bool preferRemoteEval = false, bool fallbackToLocal = true}) → Future< List< T> > - Read with a normalized query spec through the orchestrator.
-
synchronize(
SyncScope scope) → Future< void> - When online, push pending ops, fetch delta, and merge into local.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited