addEventListener abstract method
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});