emit method
Emits an event with the given name and data.
Implementation
void emit(EventType event, dynamic data) {
_controller.sink.add({event: data});
}
Emits an event with the given name and data.
void emit(EventType event, dynamic data) {
_controller.sink.add({event: data});
}