connect method
override
Connects the effect channel and drives its retained payload.
Implementation
@override
void connect(
Module module,
CommitType candidate, {
required String portPrefix,
}) {
channel = module.addPairInterface(downstream, PairRole.provider,
uniquify: (original) => '${portPrefix}_$original');
final localSidebands = [
for (var index = 0; index < sidebands.length; index++)
module.addInput(
'${portPrefix}_sideband_$index',
sidebands[index],
width: sidebands[index].width,
),
];
writeData(channel.data, candidate, localSidebands);
}