addOutputPort method

void addOutputPort(
  1. String nodeId,
  2. Port port
)

Adds an output port to an existing node.

Does nothing if the node with nodeId doesn't exist.

Parameters:

  • nodeId: The ID of the node to add the port to
  • port: The port to add

Implementation

void addOutputPort(String nodeId, Port port) {
  final node = _nodes[nodeId];
  if (node == null) return;

  node.addOutputPort(port);
}