copyWith method

HighlightAnnotation copyWith({
  1. String? id,
  2. int? pageNumber,
  3. DateTime? createdAt,
  4. DateTime? modifiedAt,
  5. List<Rect>? boundingBoxes,
  6. Color? color,
  7. double? opacity,
})

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