InMemorySyncMetaDataRepo class

Simple in-memory implementation useful for tests and examples.

Implemented types

Constructors

InMemorySyncMetaDataRepo()

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.
override
getLastInitialSyncCursor(String featureKey) Future<String?>
Returns the last saved cursor specifically used by the initial sync process for featureKey, or null if none.
override
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.
override
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.
override
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.
override
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.
override

Operators

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