Event class

Annotations
  • DomName('Event')
Implemented by

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.

Constants

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

Instance Properties

matchingTarget Element
read-only
bubbles bool
read-only
cancelable bool
read-only
clipboardData DataTransfer
read-only
currentTarget EventTarget
read-only
defaultPrevented bool
read-only
eventPhase int
read-only
path List<Node>
read-only
target EventTarget
read-only
timeStamp int
read-only
type String
read-only

Instance Methods

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