- 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
-
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
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 })
-
Creates a new Event object of the specified type.
factory - 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
-
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(), read-only - 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
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
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 the result of the JavaScript objects
toString
method.inherited