copyWith method
Implementation
NoteAnnotation copyWith({
String? id,
int? pageNumber,
DateTime? createdAt,
DateTime? modifiedAt,
Offset? position,
String? text,
Color? backgroundColor,
Color? textColor,
double? fontSize,
}) {
return NoteAnnotation(
id: id ?? this.id,
pageNumber: pageNumber ?? this.pageNumber,
createdAt: createdAt ?? this.createdAt,
modifiedAt: modifiedAt ?? this.modifiedAt,
position: position ?? this.position,
text: text ?? this.text,
backgroundColor: backgroundColor ?? this.backgroundColor,
textColor: textColor ?? this.textColor,
fontSize: fontSize ?? this.fontSize,
);
}