InMemorySyncMetaDataRepo class
Simple in-memory implementation useful for tests and examples. Demonstrates the Repository pattern with clean separation of concerns.
- Implemented types
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
-
areAllInitialSyncsCompleted(
List< String> featureKeys) → Future<bool> -
Checks if all specified features have completed initial sync.
More efficient than checking each feature individually.
Returns
trueonly if all features infeatureKeysare completed.override -
getBackgroundSyncCheckpoint(
String featureKey) → Future< SyncCheckpoint?> -
Returns the last checkpoint from a successful background sync for
featureKey. Used for resumable, incremental syncing.override -
getInitialSyncCheckpoint(
String featureKey) → Future< SyncCheckpoint?> -
Returns the last checkpoint from the initial sync process for
featureKey.override -
isInitialSyncCompleted(
String featureKey) → Future< bool> -
Returns whether the initial (critical) sync has been completed for
featureKey. Iftrue, 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
-
updateBackgroundSyncCheckpoint(
String featureKey, SyncCheckpoint? checkpoint) → Future< void> -
Updates the last checkpoint from a successful background sync for
featureKey. Stores (lastUpdatedAt, lastItemId) for deterministic pagination.override -
updateInitialSyncCheckpoint(
String featureKey, SyncCheckpoint? checkpoint) → Future< void> -
Updates the last checkpoint used by the initial sync process for
featureKey. This is kept separate from the background sync checkpoint to avoid conflicts.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited