removePort method

bool removePort(
  1. String portId
)

Removes a port by ID from either input or output ports.

This is a convenience method that searches both input and output ports.

Parameters:

  • portId - The unique identifier of the port to remove

Returns true if the port was found and removed, false otherwise.

Implementation

bool removePort(String portId) {
  return removeInputPort(portId) || removeOutputPort(portId);
}