addEventListener<K> method
Attach an event listener.
Implementation
void addEventListener<K>(String type, Function(K event) listener,
[bool? useCapture]) {
_callMethod(_delegate, 'addEventListener',
[type, allowInterop(listener), useCapture]);
}