emit method

void emit(
  1. dynamic event
)

发送事件

Implementation

void emit(dynamic event) {
  if (isClosed) {
    RxLogger.warning('Cannot emit event after dispose: $event');
    return;
  }
  RxLogger.log(
      'EventBus: Emitting event of type ${event.runtimeType} - $event');
  _eventSubject.safeAdd(event);
}