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,
    PdfAnnotUrlLink(
      rect: context.localToGlobal(box!),
      url: destination,
      date: date,
      author: author,
      subject: subject,
    ),
    objser: replaces?.ser,
    objgen: replaces?.gen ?? 0,
  );
}