PolygonAnnotation constructor

PolygonAnnotation({
  1. required List<PdfPoint> points,
  2. Widget? child,
  3. PdfColor? color,
  4. PdfColor? interiorColor,
  5. PdfBorder? border,
  6. String? author,
  7. DateTime? date,
  8. String? subject,
  9. String? content,
})

Implementation

PolygonAnnotation({
  required List<PdfPoint> points,
  Widget? child,
  PdfColor? color,
  PdfColor? interiorColor,
  PdfBorder? border,
  String? author,
  DateTime? date,
  String? subject,
  String? content,
}) : super(
       child:
           child ??
           Polygon(
             points: points,
             strokeColor: color,
             fillColor: interiorColor,
             strokeWidth: border?.width ?? 1.0,
           ),
       builder: AnnotationPolygon(
         points,
         color: color,
         interiorColor: interiorColor,
         border: border,
         author: author,
         date: date,
         content: content,
         subject: subject,
       ),
     );