EventTarget class abstract

Base interface for objects that can receive events.

See: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget

Constructors

EventTarget()

Properties

hashCode int
The hash code for this object.
no setterinherited
raw → dynamic
The underlying platform object.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addEventListener(String type, EventListener? callback) → void
Registers an event listener on this target.
dispatchEvent(Event event) bool
Dispatches an event to this target.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeEventListener(String type, EventListener? callback) → void
Removes a previously registered event listener.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited