copyWith method

TableSyncGroupState copyWith({
  1. bool? syncing,
  2. bool? hasError,
  3. String? errorMessage,
  4. DateTime? lastRun,
  5. bool? autoSyncEnabled,
})

Implementation

TableSyncGroupState copyWith({
  bool? syncing,
  bool? hasError,
  String? errorMessage,
  DateTime? lastRun,
  bool? autoSyncEnabled,
}) {
  return TableSyncGroupState(
    syncing: syncing ?? this.syncing,
    hasError: hasError ?? this.hasError,
    errorMessage: errorMessage ?? this.errorMessage,
    lastRun: lastRun ?? this.lastRun,
    autoSyncEnabled: autoSyncEnabled ?? this.autoSyncEnabled,
  );
}