copyWith method
Implementation
SyncStatus copyWith({
bool? connected,
bool? downloading,
bool? uploading,
bool? connecting,
Object? uploadError,
Object? downloadError,
DateTime? lastSyncedAt,
bool? hasSynced,
}) {
return SyncStatus(
connected: connected ?? this.connected,
downloading: downloading ?? this.downloading,
uploading: uploading ?? this.uploading,
connecting: connecting ?? this.connecting,
uploadError: uploadError ?? this.uploadError,
downloadError: downloadError ?? this.downloadError,
lastSyncedAt: lastSyncedAt ?? this.lastSyncedAt,
hasSynced: hasSynced ?? this.hasSynced,
);
}