Event class

Inheritance
Implemented by
Annotations
  • @DomName('Event')

Constants

AT_TARGETint
@DocsEditable(), @DomName('Event.AT_TARGET')

This event is being handled by the event target.

2
BUBBLING_PHASEint
@DocsEditable(), @DomName('Event.BUBBLING_PHASE')

This event is bubbling up through the target's ancestors.

3
CAPTURING_PHASEint
@DocsEditable(), @DomName('Event.CAPTURING_PHASE')

This event is propagating through the target's ancestors, starting from the document.

1

Static Properties

instanceRuntimeTypeType
@Deprecated("Internal Use Only"), read-only

Constructors

Event(String type, { bool canBubble: true, bool cancelable: true })
factory
Event.eventType(String type, String name, { bool canBubble: true, bool cancelable: true })
factory

Creates a new Event object of the specified type.

Event.internal_()

Properties

bubblesbool
@DocsEditable(), @DomName('Event.bubbles'), read-only
cancelablebool
@DocsEditable(), @DomName('Event.cancelable'), read-only
currentTargetEventTarget
@DocsEditable(), @DomName('Event.currentTarget'), read-only
defaultPreventedbool
@DocsEditable(), @DomName('Event.defaultPrevented'), read-only
eventPhaseint
@DocsEditable(), @DomName('Event.eventPhase'), read-only
isTrustedbool
@DocsEditable(), @DomName('Event.isTrusted'), @Experimental(), read-only
matchingTargetElement
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.

pathList<EventTarget>
@DocsEditable(), @DomName('Event.path'), @Experimental(), read-only

This event's path, taking into account shadow DOM.

scopedbool
@DocsEditable(), @DomName('Event.scoped'), @Experimental(), read-only
targetEventTarget
@DocsEditable(), @DomName('Event.target'), read-only
timeStampnum
@DocsEditable(), @DomName('Event.timeStamp'), read-only
typeString
@DocsEditable(), @DomName('Event.type'), read-only
hashCodeint
read-only, inherited
runtimeTypeType
read-only, inherited

A representation of the runtime type of the object.

Operators

operator ==(other) → bool
inherited

The equality operator.

Methods

deepPath() → List<EventTarget>
@DocsEditable(), @DomName('Event.deepPath'), @Experimental()
preventDefault() → void
@DocsEditable(), @DomName('Event.preventDefault')
stopImmediatePropagation() → void
@DocsEditable(), @DomName('Event.stopImmediatePropagation')
stopPropagation() → void
@DocsEditable(), @DomName('Event.stopPropagation')
noSuchMethod(Invocation invocation) → dynamic
inherited

Invoked when a non-existent method or property is accessed.

toString() → String
inherited

Returns the result of the JavaScript objects toString method.

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/Event-class.html