emit method
Implementation
void emit (String customId, dynamic payload) {
final collector = _collectors.values.firstWhereOrNull((element) => element.customId == customId);
if (collector != null) {
collector.handle(payload);
}
}
void emit (String customId, dynamic payload) {
final collector = _collectors.values.firstWhereOrNull((element) => element.customId == customId);
if (collector != null) {
collector.handle(payload);
}
}