copyWith method

Annotation copyWith({
  1. Reference? authorReference,
  2. String? authorString,
  3. DateTime? time,
  4. String? text,
})

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,
    );