addEventListener method

void addEventListener(
  1. String type,
  2. EventListener? callback, [
  3. dynamic options
])

Implementation

void addEventListener(String type, EventListener? callback,
        [dynamic options]) =>
    js_util.callMethod(this, 'addEventListener',
        [type, callback == null ? null : allowInterop(callback), options]);