copyWith method

FilePath copyWith({
  1. String? path,
  2. Option<String>? name,
})

Returns a new instance by overriding the values passed as arguments

Implementation

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