getOutputPorts method

List<Port> getOutputPorts(
  1. String nodeId
)

Gets all output ports for a node.

Returns an empty list if the node doesn't exist.

Implementation

List<Port> getOutputPorts(String nodeId) {
  final node = _nodes[nodeId];
  return node?.outputPorts.toList() ?? [];
}