listen method

void listen(
  1. String type,
  2. EventListener handler, {
  3. bool captureThis = false,
})

Implementation

void listen(String type, EventListener handler, {bool captureThis: false}) =>
    js.listen(
        type,
        captureThis
            ? allowInteropCaptureThis(handler) as dynamic Function(Event)
            : allowInterop(handler));