DrawingAnnotation constructor

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

Implementation

const DrawingAnnotation({
  required super.id,
  required super.pageNumber,
  required super.createdAt,
  required super.modifiedAt,
  required this.path,
  required this.color,
  required this.strokeWidth,
  this.strokeCap = StrokeCap.round,
}) : super(type: AnnotationType.drawing);