copyWith method

DrawingAnnotation copyWith({
  1. String? id,
  2. int? pageNumber,
  3. DateTime? createdAt,
  4. DateTime? modifiedAt,
  5. List<Offset>? path,
  6. Color? color,
  7. double? strokeWidth,
  8. StrokeCap? strokeCap,
})

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