clearNodeSelection method
void
clearNodeSelection()
Clears all node selections.
Triggers the onNodeSelected callback with null to indicate no selection.
Implementation
void clearNodeSelection() {
if (_selectedNodeIds.isEmpty) return;
for (final id in _selectedNodeIds) {
final node = _nodes[id];
if (node != null) {
node.selected.value = false;
}
}
_selectedNodeIds.clear();
events.node?.onSelected?.call(null);
}