on method
Subscribes handler to event.
Handlers may declare fewer parameters than the event provides; the emitter calls each one with exactly the number it declares.
Implementation
void on(Events event, Function handler) {
_appHandlers.add(MapEntry(event, handler));
_eventEmitter.on(event.parseToString(), handler);
}