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