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