addEventListener method
Implementation
void addEventListener(String event, void Function(Event) callback,
{Map<String, String>? options}) {
eventListeners.add({
'event': event,
'callback': callback,
'options': options,
});
}
void addEventListener(String event, void Function(Event) callback,
{Map<String, String>? options}) {
eventListeners.add({
'event': event,
'callback': callback,
'options': options,
});
}