SyncMetaDataRepo class abstract

Sync metadata repository

Responsible for storing feature-specific sync metadata such as the last sync cursor. Implementations may use an on-disk store, database, or an in-memory map (useful for tests).

Implementers

Constructors

SyncMetaDataRepo()

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

getLastBackgroundSyncedCursor(String featureKey) Future<String?>
Returns the last time a successful sync (initial or incremental) ran for featureKey. Returns the last saved cursor representing the state of the last successful sync (initial or incremental) for featureKey, or null.
getLastInitialSyncCursor(String featureKey) Future<String?>
Returns the last saved cursor specifically used by the initial sync process for featureKey, or null if none.
isInitialSyncCompleted(String featureKey) Future<bool>
Returns whether the initial (critical) sync has been completed for featureKey. If true, initial sync may be skipped for that feature.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setInitialSyncCompleted(String featureKey, bool completed) Future<void>
Sets the initial sync completed flag for featureKey.
toString() String
A string representation of this object.
inherited
updateLastBackgroundSyncedCursor(String featureKey, String? cursor) Future<void>
Updates the last saved cursor representing the state of the last successful sync (initial or incremental) for featureKey. cursor may be null if there is no cursor to record.
updateLastInitialSyncCursor(String featureKey, String? cursor) Future<void>
Updates the last saved cursor used by the initial sync process for featureKey. This is kept separate from the incremental/background sync cursor to avoid conflicts between initial one-time downloads and ongoing incremental syncing.

Operators

operator ==(Object other) bool
The equality operator.
inherited