on method
This function binds the handler
as a listener to the event
Implementation
void on(String event, EventHandler handler) {
this._events.putIfAbsent(event, () => <EventHandler>[]);
this._events[event]!.add(handler);
}
This function binds the handler
as a listener to the event
void on(String event, EventHandler handler) {
this._events.putIfAbsent(event, () => <EventHandler>[]);
this._events[event]!.add(handler);
}