Event class

Implementers
Annotations
  • @Native("Event,InputEvent,SubmitEvent")

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. [...]

Properties

bubblesbool?
read-only
cancelablebool?
read-only
composedbool?
read-only
currentTargetEventTarget?
read-only
defaultPreventedbool
read-only
eventPhaseint
read-only
hashCodeint
read-only, inherited
The hash code for this object. [...]
isTrustedbool?
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>
read-only
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.
targetEventTarget?
read-only
timeStampnum?
read-only
typeString
read-only

Methods

composedPath() → List<EventTarget>
noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]
preventDefault() → void
stopImmediatePropagation() → void
stopPropagation() → void
toString() → String
inherited
A string representation of this object. [...]

Operators

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

Constants

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

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