BackgroundSyncHandler class abstract
--- BackgroundSyncHandler --- Contract for a feature-specific background sync implementation. Handles fetching local/remote data and applying bidirectional changes.
clients only depend on methods they use.
- focused solely on data transfer operations.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
applyRemoteChanges(
List< SyncPayload< remoteStates) → Future<ServerItem> >ApplyResult> - Apply remote changes to local storage Returns success/failure with detailed errors
-
fetchRemoteChanges(
{SyncCheckpoint? checkpoint, required int batchSize}) → Future< SyncBatchResult> - Fetch remote changes for sync with checkpoint-based pagination
-
getLocallyModified(
) → Future< List< SyncPayload< >LocalItem> > - Fetch locally modified items that need to be synced Returns items that have changed locally and need to be pushed to server
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pushLocalChanges(
List< SyncPayload< localStates) → Future<LocalItem> >ApplyResult> - Push local changes to remote server Returns success/failure with detailed errors
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited