updatePort method

bool updatePort(
  1. String portId,
  2. Port updatedPort
)

Updates a port by ID in either input or output ports.

Implementation

bool updatePort(String portId, Port updatedPort) {
  return updateInputPort(portId, updatedPort) ||
      updateOutputPort(portId, updatedPort);
}