copyWith method

CopyOptions copyWith({
  1. bool? recursive,
  2. bool? checkSizeAndModifiedDate,
  3. bool? tryToLinkFile,
  4. bool? tryToLinkDir,
  5. bool? followLinks,
  6. bool? delete,
  7. List<String>? include,
  8. List<String>? exclude,
  9. bool? verbose,
})

Copy with, cloning with optional override

Implementation

CopyOptions copyWith({
  bool? recursive,
  bool? checkSizeAndModifiedDate,
  bool? tryToLinkFile,
  bool? tryToLinkDir,
  bool? followLinks,
  bool? delete,
  List<String>? include,
  List<String>? exclude,
  bool? verbose,
}) => CopyOptions(
  recursive: recursive ?? this.recursive,
  checkSizeAndModifiedDate:
      checkSizeAndModifiedDate ?? this.checkSizeAndModifiedDate,
  tryToLinkFile: tryToLinkFile ?? this.tryToLinkFile,
  tryToLinkDir: tryToLinkDir ?? this.tryToLinkDir,
  followLinks: followLinks ?? this.followLinks,
  delete: delete ?? this.delete,
  include: include ?? this.include,
  exclude: exclude ?? this.exclude,
  verbose: verbose ?? this.verbose,
);