addInterfacePorts<InterfaceType extends Interface<TagType>, TagType extends Enum> method

InterfaceType addInterfacePorts<InterfaceType extends Interface<TagType>, TagType extends Enum>(
  1. InterfaceType source, {
  2. Iterable<TagType>? inputTags,
  3. Iterable<TagType>? outputTags,
  4. Iterable<TagType>? inOutTags,
  5. String uniquify(
    1. String original
    )?,
})
inherited

Registers source on this Module and returns its internal clone.

Implementation

InterfaceType addInterfacePorts<InterfaceType extends Interface<TagType>,
            TagType extends Enum>(InterfaceType source,
        {Iterable<TagType>? inputTags,
        Iterable<TagType>? outputTags,
        Iterable<TagType>? inOutTags,
        String Function(String original)? uniquify}) =>
    addInterfaceFrom(
      source.clone() as InterfaceType,
      source,
      inputTags: inputTags,
      outputTags: outputTags,
      inOutTags: inOutTags,
      uniquify: uniquify,
    );