copyWith method

DirPath copyWith({
  1. String? path,
  2. Option<String>? name,
  3. bool? allRecursive,
})

Returns a new instance by overriding the values passed as arguments

Implementation

DirPath copyWith({
  String? path,
  Option<String>? name,
  bool? allRecursive,
}) =>
    DirPath(
        path: path ?? this.path,
        name: name != null ? name.value : this.name,
        allRecursive: allRecursive ?? this.allRecursive);