getConnectionsFromPort method
Gets all connections originating from a specific port.
Returns connections where the specified port is the source.
Example:
final outgoing = controller.getConnectionsFromPort('node1', 'output1');
Implementation
List<Connection> getConnectionsFromPort(String nodeId, String portId) {
return _connections
.where(
(conn) => conn.sourceNodeId == nodeId && conn.sourcePortId == portId,
)
.toList();
}