copyWith method
Implementation
Path copyWith({
List<String>? segments,
String? filename,
String? filetype,
}) {
return Path(
segments ?? this.segments,
filename: filename ?? this.filename,
filetype: filetype ?? this.filetype,
);
}