addEventListener method
Implementation
void addEventListener(String eventType, EventHandler eventHandler) {
List<EventHandler>? existHandler = eventHandlers[eventType];
if (existHandler == null) {
eventHandlers[eventType] = existHandler = [];
}
existHandler.add(eventHandler);
}