copyWith method
Implementation
DrawingAnnotation copyWith({
String? id,
int? pageNumber,
DateTime? createdAt,
DateTime? modifiedAt,
List<Offset>? path,
Color? color,
double? strokeWidth,
StrokeCap? strokeCap,
}) {
return DrawingAnnotation(
id: id ?? this.id,
pageNumber: pageNumber ?? this.pageNumber,
createdAt: createdAt ?? this.createdAt,
modifiedAt: modifiedAt ?? this.modifiedAt,
path: path ?? this.path,
color: color ?? this.color,
strokeWidth: strokeWidth ?? this.strokeWidth,
strokeCap: strokeCap ?? this.strokeCap,
);
}