EventTarget class

Base class for objects that dispatches events.

Implementers

Constructors

EventTarget()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addEventListener(String type, dynamic listener(dynamic)) EventTarget
Add an event listener @return The self object, for chainability.
dispatchEvent(Event event) EventTarget
Emit an event. @return The self object, for chainability.
hasAnyEventListener(String type) bool
Check if any event listener of the given type is added
hasEventListener(String type, void listener()) bool
Check if an event listener is added
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeEventListener(String type, Function listener) EventTarget
Remove an event listener @return The self object, for chainability.
toString() String
A string representation of this object.
inherited

Operators

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