typedInterface<InterfaceType extends PairInterface> method
- String name
Gets an interface named name with concrete type InterfaceType.
Throws a RohdBridgeException if the interface does not exist or is not
an InterfaceType.
Implementation
InterfaceReference<InterfaceType>
typedInterface<InterfaceType extends PairInterface>(String name) {
final interfaceReference = interface(name);
if (interfaceReference is! InterfaceReference<InterfaceType>) {
throw RohdBridgeException('Interface $name on $this is a '
'${interfaceReference.interface.runtimeType}, not an '
'$InterfaceType.');
}
return interfaceReference;
}