addEventListener abstract method

void addEventListener(
  1. String type,
  2. void listener(
    1. T event
    ), {
  3. bool useCapture = false,
})

Adds an event listener. *

    • useCapture is applicable only if the event is caused by a DOM event. Otherwise, it is ignored.

Implementation

void addEventListener(String type, void listener(T event), {bool useCapture = false});