fetchRemoteChanges abstract method

Future<SyncBatchResult> fetchRemoteChanges({
  1. SyncCheckpoint? checkpoint,
  2. required int batchSize,
})

Fetch remote changes for sync with checkpoint-based pagination

checkpoint indicates where to resume (null for first page) batchSize controls how many items to fetch per page (required)

Returns a batch and a nextCheckpoint if more pages are available. Items should be ordered by syncId ASC for deterministic pagination.

Implementation

Future<SyncBatchResult> fetchRemoteChanges({
  SyncCheckpoint? checkpoint,
  required int batchSize,
});