copyWith method
A copy with selected fields replaced.
Implementation
PrismSyncSnapshot copyWith({
PrismSyncPhase? phase,
int? pendingChanges,
int? completed,
int? total,
DateTime? lastSyncedAt,
Object? error,
}) {
return PrismSyncSnapshot(
phase: phase ?? this.phase,
pendingChanges: pendingChanges ?? this.pendingChanges,
completed: completed ?? this.completed,
total: total ?? this.total,
lastSyncedAt: lastSyncedAt ?? this.lastSyncedAt,
error: error ?? this.error,
);
}