addInputPort method

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

Adds an input 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 addInputPort(String nodeId, Port port) {
  final node = _nodes[nodeId];
  if (node == null) return;

  node.addInputPort(port);
}