emit method

void emit(
  1. String customId,
  2. dynamic payload
)

Implementation

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