class
Event

(Not documented.)

Annotations
  • DomName('Event')
Implemented by

Constants

int AT_TARGET = 2
const
This event is being handled by the event target.
int BUBBLING_PHASE = 3
const
This event is bubbling up through the target's ancestors.
int CAPTURING_PHASE = 1
const
This event is propagating through the target's ancestors, starting from the document.

Properties

Element matchingTarget
read-only
A pointer to the element whose CSS selector matched within which an event was fired. If this Event was not associated with any Event delegation, accessing this value will throw an [UnsupportedError].
bool bubbles
read-only
bool cancelable
read-only
DataTransfer clipboardData
read-only
Access to the system's clipboard data during copy, cut, and paste events.
EventTarget currentTarget
read-only
bool defaultPrevented
read-only
int eventPhase
read-only
List<Node> path
read-only
This event's path, taking into account shadow DOM.
EventTarget target
read-only
int timeStamp
read-only
String type
read-only

Constructors

Event(String type, {bool canBubble: true, bool cancelable: true})
Event.eventType(String type, String name, {bool canBubble: true, bool cancelable: true})
Creates a new Event object of the specified type.

Methods

preventDefault() → void
stopImmediatePropagation() → void
stopPropagation() → void