clearAnnotationSelection method

void clearAnnotationSelection()

Clear all annotation selections

Implementation

void clearAnnotationSelection() {
  runInAction(() {
    for (final id in _selectedAnnotationIds) {
      final annotation = _annotations[id];
      if (annotation != null) {
        annotation.setSelected(false);
      }
    }
    _selectedAnnotationIds.clear();
  });
}