getPortConnections method

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

Gets connections for a specific port

Implementation

List<Connection> getPortConnections(String nodeId, String portId) {
  return connections
      .where((conn) => conn.involvesPort(nodeId, portId))
      .toList();
}