copyWith method

Path copyWith({
  1. List<String>? segments,
  2. String? filename,
  3. String? filetype,
})

Implementation

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