copyWith method
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,
);