Gets all ports (input and output combined).
Returns a new list containing all input ports followed by all output ports.
List<Port> get allPorts => [...inputPorts, ...outputPorts];