SyncCheckpoint class
--- SyncCheckpoint --- Represents the sync state checkpoint for pagination.
Uses the monotonic syncId for deterministic ordering and resumable pagination. This approach ensures:
- Consistent ordering using monotonically increasing IDs
- Ability to resume from exact point after interruption
- Simple and efficient pagination (WHERE syncId > afterId)
Immutable value object following clean architecture principles.
Constructors
- SyncCheckpoint({required BigInt afterId})
-
const
-
SyncCheckpoint.fromJson(Map<
String, dynamic> json) -
Deserialize from stored map
factory
- SyncCheckpoint.fromSyncable(BigInt syncId)
-
Create checkpoint from a syncable item
factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serialize to map for storage
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override