addInterfaceFrom<InterfaceType extends Interface<TagType> , TagType extends Enum> method
- InterfaceType target,
- Interface<
TagType> source, { - Iterable<
TagType> ? inputTags, - Iterable<
TagType> ? outputTags, - Iterable<
TagType> ? inOutTags, - String uniquify(
- 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,
);