copyWith method

SyncStatus copyWith({
  1. bool? connected,
  2. bool? downloading,
  3. bool? uploading,
  4. bool? connecting,
  5. Object? uploadError,
  6. Object? downloadError,
  7. DateTime? lastSyncedAt,
  8. bool? hasSynced,
})

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,
  );
}