addPairInterfacePorts<InterfaceType extends PairInterface> method

InterfaceType addPairInterfacePorts<InterfaceType extends PairInterface>(
  1. InterfaceType source,
  2. PairRole role, {
  3. String uniquify(
    1. String original
    )?,
})
inherited

Connects the source to this Module using PairInterface.pairConnectIO and returns a copy of the source that can be used within this module.

Implementation

InterfaceType addPairInterfacePorts<InterfaceType extends PairInterface>(
        InterfaceType source, PairRole role,
        {String Function(String original)? uniquify}) =>
    (source.clone() as InterfaceType)
      ..pairConnectIO(this, source, role, uniquify: uniquify);