clearConnectionSelection method
void
clearConnectionSelection()
Clears all connection selections.
Triggers the onConnectionSelected callback with null to indicate no selection.
Implementation
void clearConnectionSelection() {
if (_selectedConnectionIds.isEmpty) return;
for (final id in _selectedConnectionIds) {
for (final connection in _connections) {
if (connection.id == id) {
connection.selected = false;
break;
}
}
}
_selectedConnectionIds.clear();
events.connection?.onSelected?.call(null);
}