Inheritance
Implemented by
Annotations
  • @DomName('Event')
  • @Native("Event,InputEvent")

Constructors

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

Properties

bubbles bool
@DocsEditable(), @DomName('Event.bubbles'), final
cancelable bool
@DocsEditable(), @DomName('Event.cancelable'), final
currentTarget EventTarget
@DocsEditable(), @DomName('Event.currentTarget'), read-only
defaultPrevented bool
@DocsEditable(), @DomName('Event.defaultPrevented'), final
eventPhase int
@DocsEditable(), @DomName('Event.eventPhase'), final
isTrusted bool
@DocsEditable(), @DomName('Event.isTrusted'), @Experimental(), final
matchingTarget Element
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.
read-only
path List<EventTarget>
This event's path, taking into account shadow DOM. [...]
@DocsEditable(), @DomName('Event.path'), @Experimental(), final
scoped bool
@DocsEditable(), @DomName('Event.scoped'), @Experimental(), final
target EventTarget
@DocsEditable(), @DomName('Event.target'), read-only
timeStamp double
@DocsEditable(), @DomName('Event.timeStamp'), final
type String
@DocsEditable(), @DomName('Event.type'), final
hashCode int
read-only, inherited
runtimeType Type
read-only, inherited

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
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(other) bool
The equality operator. [...]
inherited

Constants

AT_TARGET int
This event is being handled by the event target. [...]
@DocsEditable(), @DomName('Event.AT_TARGET')
2
BUBBLING_PHASE int
This event is bubbling up through the target's ancestors. [...]
@DocsEditable(), @DomName('Event.BUBBLING_PHASE')
3
CAPTURING_PHASE int
This event is propagating through the target's ancestors, starting from the document. [...]
@DocsEditable(), @DomName('Event.CAPTURING_PHASE')
1