emit method

void emit(
  1. EventType event,
  2. dynamic data
)

Emits an event with the given name and data.

Implementation

void emit(EventType event, dynamic data) {
  _controller.sink.add({event: data});
}