sync_engine library

Offline-first data sync with conflict resolution, retry queues, and local caching

Classes

ConflictResolver
Resolves conflicts between local and remote SyncRecord instances.
LocalStore
An in-memory store for SyncRecord instances.
RetryQueue
A queue for records that failed to sync and need to be retried.
StoreStatistics
Statistics about the contents of a LocalStore.
SyncEngine
Coordinates data synchronization between a local store and a remote source.
SyncMetadata
Cumulative statistics about sync operations.
SyncRecord
A record tracked by the sync engine.
SyncResult
The result of a sync operation.

Enums

ConflictStrategy
Strategy used to resolve conflicts between local and remote records.
SyncStatus
Status of a sync record in the local store.

Typedefs

SyncProgressCallback = void Function(int completed, int total)
Callback for reporting sync progress.