copyWith method
Implementation
HighlightAnnotation copyWith({
String? id,
int? pageNumber,
DateTime? createdAt,
DateTime? modifiedAt,
List<Rect>? boundingBoxes,
Color? color,
double? opacity,
}) {
return HighlightAnnotation(
id: id ?? this.id,
pageNumber: pageNumber ?? this.pageNumber,
createdAt: createdAt ?? this.createdAt,
modifiedAt: modifiedAt ?? this.modifiedAt,
boundingBoxes: boundingBoxes ?? this.boundingBoxes,
color: color ?? this.color,
opacity: opacity ?? this.opacity,
);
}