PolygonAnnotation constructor

PolygonAnnotation({
  1. String? id,
  2. required List<double> bbox,
  3. String? createdAt,
  4. required int pageIndex,
  5. required Color? strokeColor,
  6. required double? strokeWidth,
  7. required List<List<double>> points,
  8. Color? fillColor,
  9. BorderStyle? borderStyle,
  10. List<double>? borderDashArray,
  11. double? cloudyBorderIntensity,
  12. List<double>? cloudyBorderInset,
  13. String? creatorName,
  14. double opacity = 1.0,
  15. int? pdfObjectId,
  16. List<AnnotationFlag>? flags,
  17. String? updatedAt,
  18. String? name,
  19. String? subject,
  20. bool hidden = false,
  21. String? note,
  22. MeasurementScale? measurementScale,
  23. MeasurementPrecision? measurementPrecision,
  24. List<double>? measurementBBox,
  25. Map<String, dynamic>? customData,
})

Implementation

PolygonAnnotation({
  super.id,
  required super.bbox,
  super.createdAt,
  required super.pageIndex,
  required super.strokeColor,
  required super.strokeWidth,
  required this.points,
  super.fillColor,
  super.borderStyle,
  super.borderDashArray,
  super.cloudyBorderIntensity,
  super.cloudyBorderInset,
  super.creatorName,
  super.opacity,
  super.pdfObjectId,
  super.flags,
  super.updatedAt,
  super.name,
  super.subject,
  super.hidden,
  super.note,
  super.measurementScale,
  super.measurementPrecision,
  super.measurementBBox,
  super.customData,
}) : super(type: AnnotationType.polygon);