on method
Implementation
void on(String event, EventHandler handler) {
_events.putIfAbsent(event, () => <EventHandler>[]);
_events[event]!.add(handler);
}
void on(String event, EventHandler handler) {
_events.putIfAbsent(event, () => <EventHandler>[]);
_events[event]!.add(handler);
}