removeAnnotation method

void removeAnnotation(
  1. Annotation annotation
)

Removes the given annotation from the page.

Implementation

void removeAnnotation(Annotation annotation) {
  if (_annotations.contains(annotation)) {
    _annotation = annotation;
    _notifyPropertyChangedListeners(property: 'removeAnnotation');
    _annotation = null;
  }
}