getConnectionsFromPort method

List<Connection> getConnectionsFromPort(
  1. String nodeId,
  2. String portId
)

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();
}