Event class
- Inheritance
- Object
- JSObject
- DartHtmlDomObject
- Event
- Implemented by
- AnimationEvent
- AnimationPlayerEvent
- ApplicationCacheErrorEvent
- AudioProcessingEvent
- AutocompleteErrorEvent
- BeforeInstallPromptEvent
- BeforeUnloadEvent
- BlobEvent
- ClipboardEvent
- CloseEvent
- ContextEvent
- CustomEvent
- DeviceLightEvent
- DeviceMotionEvent
- DeviceOrientationEvent
- ErrorEvent
- ExtendableEvent
- FontFaceSetLoadEvent
- GamepadEvent
- GeofencingEvent
- HashChangeEvent
- MediaEncryptedEvent
- MediaKeyMessageEvent
- MediaQueryListEvent
- MediaStreamEvent
- MediaStreamTrackEvent
- MessageEvent
- MidiConnectionEvent
- MidiMessageEvent
- OfflineAudioCompletionEvent
- PageTransitionEvent
- PopStateEvent
- PresentationConnectionAvailableEvent
- PresentationConnectionCloseEvent
- ProgressEvent
- PromiseRejectionEvent
- RelatedEvent
- RtcDataChannelEvent
- RtcDtmfToneChangeEvent
- RtcIceCandidateEvent
- SecurityPolicyViolationEvent
- ServiceWorkerMessageEvent
- SpeechRecognitionError
- SpeechRecognitionEvent
- SpeechSynthesisEvent
- StorageEvent
- TrackEvent
- TransitionEvent
- UIEvent
- VersionChangeEvent
- Annotations
- @DomName('Event')
Constants
- AT_TARGET → int @DocsEditable(), @DomName('Event.AT_TARGET')
-
This event is being handled by the event target.
2
- BUBBLING_PHASE → int @DocsEditable(), @DomName('Event.BUBBLING_PHASE')
-
This event is bubbling up through the target's ancestors.
3
- CAPTURING_PHASE → int @DocsEditable(), @DomName('Event.CAPTURING_PHASE')
-
This event is propagating through the target's ancestors, starting from the document.
1
Static Properties
- instanceRuntimeType → Type @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
- bubbles → bool @DocsEditable(), @DomName('Event.bubbles'), read-only
- cancelable → bool @DocsEditable(), @DomName('Event.cancelable'), read-only
- currentTarget → EventTarget @DocsEditable(), @DomName('Event.currentTarget'), read-only
- defaultPrevented → bool @DocsEditable(), @DomName('Event.defaultPrevented'), read-only
- eventPhase → int @DocsEditable(), @DomName('Event.eventPhase'), read-only
- isTrusted → bool @DocsEditable(), @DomName('Event.isTrusted'), @Experimental(), read-only
- matchingTarget → Element 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
. - path → List<EventTarget> @DocsEditable(), @DomName('Event.path'), @Experimental(), read-only
-
This event's path, taking into account shadow DOM.
- scoped → bool @DocsEditable(), @DomName('Event.scoped'), @Experimental(), read-only
- target → EventTarget @DocsEditable(), @DomName('Event.target'), read-only
- timeStamp → num @DocsEditable(), @DomName('Event.timeStamp'), read-only
- type → String @DocsEditable(), @DomName('Event.type'), read-only
- hashCode → int read-only, inherited
- runtimeType → Type 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