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

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

Registers a deliberately constructed local target against source and returns target.

Prefer addStructuredInterface when target would be a plain clone of source. This form supports intentional type adaptation and does not clone target.

Implementation

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