addPairInterfaceFrom<InterfaceType extends PairInterface> method
InterfaceType
addPairInterfaceFrom<InterfaceType extends PairInterface>(
- InterfaceType target,
- PairInterface source,
- PairRole role, {
- String uniquify(
- String original
Registers a deliberately retyped pair target against source for
role and returns target.
Prefer addStructuredPairInterface when target would be a plain clone
of source. This form does not clone target and retains the
role-specific, recursive registration behavior of
PairInterface.pairConnectIO.
Implementation
InterfaceType addPairInterfaceFrom<InterfaceType extends PairInterface>(
InterfaceType target,
PairInterface source,
PairRole role, {
String Function(String original)? uniquify,
}) =>
target..pairConnectIO(this, source, role, uniquify: uniquify);