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')

Properties

Events on
read-only
This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.

Methods

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