copyWith method

FileCitationAnnotation copyWith({
  1. String? text,
  2. FileCitation? fileCitation,
  3. int? startIndex,
  4. 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,
  );
}