copyWith method

Option copyWith({
  1. String? format,
  2. String? root,
  3. String? prefix,
  4. bool? index,
})

Implementation

Option copyWith({String? format, String? root, String? prefix, bool? index}) {
  return Option(
    format: format ?? this.format,
    root: root ?? this.root,
    pkgAsset: pkgAsset,
    prefix: prefix ?? this.prefix,
    directoryIndex: index ?? directoryIndex,
  );
}