Not documented.
- Annotations
- DomName('Event')
- Implemented by
- AnimationEvent
- AnimationPlayerEvent
- ApplicationCacheErrorEvent
- AutocompleteErrorEvent
- BeforeUnloadEvent
- CloseEvent
- CustomEvent
- DeviceLightEvent
- DeviceMotionEvent
- DeviceOrientationEvent
- ErrorEvent
- ExtendableEvent
- FetchEvent
- FontFaceSetLoadEvent
- GamepadEvent
- HashChangeEvent
- MediaKeyEvent
- MediaKeyMessageEvent
- MediaKeyNeededEvent
- MediaQueryListEvent
- MediaStreamEvent
- MediaStreamTrackEvent
- MessageEvent
- MidiConnectionEvent
- MidiMessageEvent
- OverflowEvent
- PageTransitionEvent
- PopStateEvent
- ProgressEvent
- PushEvent
- RelatedEvent
- RtcDataChannelEvent
- RtcDtmfToneChangeEvent
- RtcIceCandidateEvent
- SecurityPolicyViolationEvent
- SpeechRecognitionError
- SpeechRecognitionEvent
- SpeechSynthesisEvent
- StorageEvent
- TrackEvent
- TransitionEvent
- UIEvent
Constants
- int AT_TARGET = 2
-
constThis event is being handled by the event target.
- int BUBBLING_PHASE = 3
-
constThis event is bubbling up through the target's ancestors.
- int CAPTURING_PHASE = 1
-
constThis event is propagating through the target's ancestors, starting from the document.
Properties
- bool bubbles
-
read-only
- bool cancelable
-
read-only
- DataTransfer clipboardData
-
read-onlyAccess to the system's clipboard data during copy, cut, and paste events.
- EventTarget currentTarget
-
read-only
- bool defaultPrevented
-
read-only
- int eventPhase
-
read-only
- Element matchingTarget
-
read-onlyA 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
. - List<Node> path
-
read-onlyThis 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