copyWith method
Creates a copy with the given fields replaced.
Implementation
FilePathAnnotation copyWith({
String? text,
FilePath? filePath,
int? startIndex,
int? endIndex,
}) {
return FilePathAnnotation(
text: text ?? this.text,
filePath: filePath ?? this.filePath,
startIndex: startIndex ?? this.startIndex,
endIndex: endIndex ?? this.endIndex,
);
}