addEventListener method
Implementation
void addEventListener(String event, void Function(Event) callback,
{Map<String, String>? options}) {
element?.addEventListener(
event,
callback as JSFunction,
options as JSAny,
);
}
void addEventListener(String event, void Function(Event) callback,
{Map<String, String>? options}) {
element?.addEventListener(
event,
callback as JSFunction,
options as JSAny,
);
}