PdfAnnot constructor

PdfAnnot(
  1. PdfPage pdfPage,
  2. PdfAnnotBase annot
)

Implementation

PdfAnnot(this.pdfPage, this.annot)
    : super(pdfPage.pdfDocument,
          params: PdfDict.values({
            '/Type': const PdfName('/Annot'),
          })) {
  pdfPage.annotations.add(this);
}