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