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

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

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}) =>
    (source.clone() as InterfaceType)
      ..connectIO(this, source,
          inputTags: inputTags,
          outputTags: outputTags,
          inOutTags: inOutTags,
          uniquify: uniquify);