PairInterface.clone constructor
- PairInterface otherInterface
Creates a new instance of a PairInterface with the same ports other characteristics.
Implementation
PairInterface.clone(PairInterface otherInterface)
: this(
portsFromConsumer:
_getMatchPorts(otherInterface, PairDirection.fromConsumer),
portsFromProvider:
_getMatchPorts(otherInterface, PairDirection.fromProvider),
sharedInputPorts:
_getMatchPorts(otherInterface, PairDirection.sharedInputs),
modify: otherInterface.modify,
);