addPairInterfacePorts<InterfaceType extends PairInterface> method

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

Registers source for role and returns its internal clone.

Implementation

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