PdfAnnotPolygon constructor

PdfAnnotPolygon(
  1. PdfDocument document,
  2. List<PdfPoint> points, {
  3. required PdfRect rect,
  4. PdfBorder? border,
  5. Set<PdfAnnotFlags>? flags,
  6. DateTime? date,
  7. PdfColor? color,
  8. PdfColor? interiorColor,
  9. String? subject,
  10. String? author,
  11. bool closed = true,
})

Create an Polygon annotation

Implementation

PdfAnnotPolygon(this.document, this.points,
    {required PdfRect rect,
    PdfBorder? border,
    Set<PdfAnnotFlags>? flags,
    DateTime? date,
    PdfColor? color,
    this.interiorColor,
    String? subject,
    String? author,
    bool closed = true})
    : super(
        subtype: closed ? '/PolyLine' : '/Polygon',
        rect: rect,
        border: border,
        flags: flags,
        date: date,
        color: color,
        subject: subject,
        author: author,
      );