copyWith method
Implementation
UDocMarkup copyWith({UDocMarkupKind? kind, Color? color, String? note, List<Rect>? rects, int? start, int? end, String? text, Map<String, Object?>? extra, bool touch = true}) => UDocMarkup(
id: id,
groupId: groupId,
kind: kind ?? this.kind,
pageIndex: pageIndex,
blockIndex: blockIndex,
start: start ?? this.start,
end: end ?? this.end,
text: text ?? this.text,
rects: rects ?? this.rects,
color: color ?? this.color,
note: note ?? this.note,
createdAt: createdAt,
updatedAt: touch ? DateTime.now() : updatedAt,
extra: extra ?? this.extra,
);