SyncStatusSnapshot class

Snapshot describing the current sync state for a user.

Annotations

Constructors

SyncStatusSnapshot({required String userId, required SyncStatus status, required int pendingOperations, required int completedOperations, required int failedOperations, required double progress, DateTime? lastStartedAt, DateTime? lastCompletedAt})
Creates a sync status snapshot.
const

Properties

completedOperations → int
Number of completed operations.
final
failedOperations → int
Number of failed operations.
final
hasFailures → bool
Whether there are any failures.
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasUnsyncedData → bool
Whether there is unsynced data.
no setter
lastCompletedAt → DateTime?
When the last sync completed.
final
lastStartedAt → DateTime?
When the last sync started.
final
pendingOperations → int
Number of operations waiting to sync.
final
progress → double
Progress percentage (0.0 to 1.0).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → SyncStatus
Current sync status.
final
userId → String
User ID for this snapshot.
final

Methods

copyWith({SyncStatus? status, int? pendingOperations, int? completedOperations, int? failedOperations, double? progress, DateTime? lastStartedAt, DateTime? lastCompletedAt}) → SyncStatusSnapshot
Creates a copy with modified fields.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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