EventTarget class

Base class for all browser objects that support events.

Base class for all browser objects that support events.

Use the on property to add, and remove events for compile-time type checks and a more concise API.

Annotations
  • DomName('EventTarget')
Implemented by

Instance Properties

on Events
read-only

Instance Methods

addEventListener(String type, dynamic listener(Event event), [bool useCapture]) → void
removeEventListener(String type, dynamic listener(Event event), [bool useCapture]) → void
dispatchEvent(Event event) → bool