tieOffInterface method
- InterfaceReference<
PairInterface> intfRef, - dynamic value
Tie off input ports of intfRef
from to value
.
Implementation
void tieOffInterface(InterfaceReference intfRef, dynamic value) {
final intf = intfRef.interface;
final intfRole = intfRef.role;
final portNames = intf
.getPorts(intfRole == PairRole.consumer
? [PairDirection.fromProvider]
: [PairDirection.fromConsumer])
.keys;
for (final portName in portNames) {
intfRef.port(portName).tieOff(value);
}
}