copyWith method

SyncState copyWith({
  1. bool? isSynchronizing,
  2. bool? cancelRequested,
})

Implementation

SyncState copyWith({
  bool? isSynchronizing,
  bool? cancelRequested,
}) {
  return SyncState(
    isSynchronizing: isSynchronizing ?? this.isSynchronizing,
    cancelRequested: cancelRequested ?? this.cancelRequested,
  );
}