byName method

PdfAnnotationView? byName(
  1. String name
)

The annotation whose /NM equals name, or null.

Implementation

PdfAnnotationView? byName(String name) {
  for (final view in annotations) {
    if (view.name == name) return view;
  }
  return null;
}