tryTypedInterface<InterfaceType extends PairInterface> method
- String name
Tries to get an interface named name with concrete type InterfaceType.
Returns null if the interface does not exist or is not an
InterfaceType.
Implementation
InterfaceReference<InterfaceType>?
tryTypedInterface<InterfaceType extends PairInterface>(String name) {
final interfaceReference = tryInterface(name);
return interfaceReference is InterfaceReference<InterfaceType>
? interfaceReference
: null;
}