Event class - dart:html library (original) (raw)
Implementers
- AnimationEvent
- AnimationPlaybackEvent
- ApplicationCacheErrorEvent
- AudioProcessingEvent
- BeforeInstallPromptEvent
- BeforeUnloadEvent
- BlobEvent
- ClipboardEvent
- CloseEvent
- ContextEvent
- CustomEvent
- DeviceMotionEvent
- DeviceOrientationEvent
- ErrorEvent
- ExtendableEvent
- FontFaceSetLoadEvent
- GamepadEvent
- HashChangeEvent
- KeyEvent
- MediaEncryptedEvent
- MediaKeyMessageEvent
- MediaQueryListEvent
- MediaStreamEvent
- MediaStreamTrackEvent
- MessageEvent
- MidiConnectionEvent
- MidiMessageEvent
- MutationEvent
- OfflineAudioCompletionEvent
- PageTransitionEvent
- PaymentRequestUpdateEvent
- PopStateEvent
- PresentationConnectionAvailableEvent
- PresentationConnectionCloseEvent
- ProgressEvent
- PromiseRejectionEvent
- RtcDataChannelEvent
- RtcDtmfToneChangeEvent
- RtcPeerConnectionIceEvent
- RtcTrackEvent
- SecurityPolicyViolationEvent
- SensorErrorEvent
- SpeechRecognitionError
- SpeechRecognitionEvent
- SpeechSynthesisEvent
- StorageEvent
- TrackEvent
- TransitionEvent
- UIEvent
- VersionChangeEvent
- VRDeviceEvent
- VRDisplayEvent
- VRSessionEvent
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})
Creates a new Event object of the specified type.
factory
Properties
no setter
cancelable → bool?
no setter
no setter
no setter
no setter
no setter
The hash code for this object.
no setterinherited
no setter
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.
no setter
path → List<EventTarget>
no setter
A representation of the runtime type of the object.
no setterinherited
no setter
no setter
no setter
Methods
composedPath()→ List<EventTarget>
noSuchMethod(Invocation invocation)→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
preventDefault()→ void
stopImmediatePropagation()→ void
stopPropagation()→ void
A string representation of this object.
inherited
Operators
operator ==(Object other)→ bool
The equality operator.
inherited
Constants
This event is being handled by the event target.
BUBBLING_PHASE → const int
This event is bubbling up through the target's ancestors.
CAPTURING_PHASE → const int
This event is propagating through the target's ancestors, starting from the document.