copyWith method
FileCitationAnnotation
copyWith({
- String? text,
- FileCitation? fileCitation,
- int? startIndex,
- int? endIndex,
Creates a copy with the given fields replaced.
Implementation
FileCitationAnnotation copyWith({
String? text,
FileCitation? fileCitation,
int? startIndex,
int? endIndex,
}) {
return FileCitationAnnotation(
text: text ?? this.text,
fileCitation: fileCitation ?? this.fileCitation,
startIndex: startIndex ?? this.startIndex,
endIndex: endIndex ?? this.endIndex,
);
}