copyWith method
Creates a copy of the Annotation instance and allows for non-destructive mutation.
Implementation
Annotation copyWith({
Reference? authorReference,
String? authorString,
DateTime? time,
String? text,
}) =>
Annotation(
authorReference: authorReference ?? this.authorReference,
authorString: authorString ?? this.authorString,
time: time ?? this.time,
text: text ?? this.text,
);