copyWith method

CascadeOptions copyWith({
  1. bool? dryRun,
  2. void onProgress(
    1. CascadeProgress
    )?,
  3. CancellationToken? cancellationToken,
  4. Duration? timeout,
  5. bool? allowPartialDeletes,
})

Implementation

CascadeOptions copyWith({
  bool? dryRun,
  void Function(CascadeProgress)? onProgress,
  CancellationToken? cancellationToken,
  Duration? timeout,
  bool? allowPartialDeletes,
}) {
  return CascadeOptions(
    dryRun: dryRun ?? this.dryRun,
    onProgress: onProgress ?? this.onProgress,
    cancellationToken: cancellationToken ?? this.cancellationToken,
    timeout: timeout ?? this.timeout,
    allowPartialDeletes: allowPartialDeletes ?? this.allowPartialDeletes,
  );
}