clearSelection method
void
clearSelection()
Clears all selections (nodes, connections, and annotations).
This is a convenience method that calls clearNodeSelection,
clearConnectionSelection, and clearAnnotationSelection.
Does nothing if there are no active selections.
Implementation
void clearSelection() {
if (_selectedNodeIds.isEmpty &&
_selectedConnectionIds.isEmpty &&
!annotations.hasAnnotationSelection) {
return;
}
runInAction(() {
clearNodeSelection();
clearConnectionSelection();
annotations.clearAnnotationSelection();
});
}