getPort method
Gets a specific port from a node.
Returns null if the node or port doesn't exist.
Example:
final port = controller.getPort('node1', 'output1');
if (port != null) {
print('Port type: ${port.type}');
}
Implementation
Port? getPort(String nodeId, String portId) {
final node = _nodes[nodeId];
return node?.findPort(portId);
}