emit method
- T event
Implementation
@internal
void emit(T event) {
// check if already disposed
if (isDisposed) {
logger.warning('failed to emit event ${event} on a disposed emitter');
return;
}
// queue mode
if (_queueMode) {
_queue.add(event);
return;
}
// emit the event
streamCtrl.add(event);
}