attach method

void attach()

Connects to the viewer (called by the editor page).

Implementation

void attach() {
  final UPdfDocument? document = viewer.document;
  if (document == null) return;
  _edit ??= UPdfEdit(document);
}