removeInputPort method
Removes an input port by ID.
Parameters:
portId- The unique identifier of the port to remove
Returns true if the port was found and removed, false otherwise.
Implementation
bool removeInputPort(String portId) {
return runInAction(() {
final index = inputPorts.indexWhere((port) => port.id == portId);
if (index >= 0) {
inputPorts.removeAt(index);
return true;
}
return false;
});
}