tryTypedPort<PortType extends Logic> method
- String portRef
Tries to get a typed reference to portRef within this interface.
Returns null if the port does not exist or its root port is not a
PortType. Parsing and interface-port behavior are delegated to
tryPort.
Implementation
TypedPortReference<PortType>? tryTypedPort<PortType extends Logic>(
String portRef) =>
tryPort(portRef)?.tryAsTyped<PortType>();