build method

  1. @override
PdfAnnot build(
  1. Context context,
  2. PdfRect? box
)
override

Implementation

@override
PdfAnnot build(Context context, PdfRect? box) {
  return PdfAnnot(
    context.page,
    PdfAnnotSquare(
      rect: context.localToGlobal(box!),
      border: border,
      color: color,
      interiorColor: interiorColor,
      date: date,
      author: author,
      subject: subject,
    ),
    objser: replaces?.ser,
    objgen: replaces?.gen ?? 0,
  );
}