removeConnection method
Removes existing connection.
Do not use it if you are not sure what you do. This is called eg. in removeLink
function.
Implementation
void removeConnection(String connectionId) {
connections.removeWhere((conn) => conn.connectionId == connectionId);
}