addAnnotation method

void addAnnotation(
  1. Annotation annotation
)

Adds the given annotation to the page represented by the annotation’s PageNumber property..

Implementation

void addAnnotation(Annotation annotation) {
  _annotation = annotation;
  _notifyPropertyChangedListeners(property: 'addAnnotation');
  _annotation = null;
  clearSelection();
}