SyncState class
The persisted synchronization state of a single mount.
baselineRef is the reference the local copy was last reconciled with — the anchor the conflict check compares against. It only advances after a successful publish.
Constructors
- SyncState({required SyncRef baselineRef, SyncRef? currentRef, SyncStatus status = SyncStatus.clean, DateTime? lastSyncedAt, String? lastError})
-
const
-
SyncState.fromJson(Map<
String, dynamic> json) -
factory
Properties
- baselineRef → SyncRef
-
The reference the local copy was materialized from / last synced to.
final
- currentRef → SyncRef?
-
The reference the local working copy currently represents, if computed.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastError → String?
-
The last error message, when status is SyncStatus.error.
final
- lastSyncedAt → DateTime?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → SyncStatus
-
final
Methods
-
copyWith(
{SyncRef? baselineRef, SyncRef? currentRef, SyncStatus? status, DateTime? lastSyncedAt, String? lastError, bool clearError = false}) → SyncState -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited