Dart SDK
dart:html
MouseEvent
class
MouseEvent
Properties
Constructors
Properties
altKey
button
ctrlKey
dataTransfer
fromElement
metaKey
region
relatedTarget
shiftKey
toElement
clientX
clientY
offsetX
offsetY
movementX
movementY
screenX
screenY
client
movement
offset
screen
matchingTarget
bubbles
cancelable
clipboardData
currentTarget
defaultPrevented
eventPhase
path
target
timeStamp
type
detail
view
which
layer
page
Constructors
MouseEvent
Methods
preventDefault
stopImmediatePropagation
stopPropagation
(Not documented.)
Annotations
DomName('MouseEvent')
Extends
Object
Event
UIEvent
MouseEvent
Implemented by
WheelEvent
Properties
bool
altKey
read-only
int
button
read-only
bool
ctrlKey
read-only
DataTransfer
dataTransfer
read-only
Node
fromElement
read-only
The nonstandard way to access the element that the mouse comes from in the case of a mouseover event.
bool
metaKey
read-only
String
region
read-only
EventTarget
relatedTarget
read-only
bool
shiftKey
read-only
Node
toElement
read-only
The nonstandard way to access the element that the mouse goes to in the case of a mouseout event.
int
clientX
read-only
int
clientY
read-only
int
offsetX
read-only
int
offsetY
read-only
int
movementX
read-only
int
movementY
read-only
int
screenX
read-only
int
screenY
read-only
Point
client
read-only
Point
movement
read-only
Point
offset
read-only
The coordinates of the mouse pointer in target node coordinates.
Point
screen
read-only
Element
matchingTarget
read-only ,
inherited
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 ,
inherited
bool
cancelable
read-only ,
inherited
DataTransfer
clipboardData
read-only ,
inherited
Access to the system's clipboard data during copy, cut, and paste events.
EventTarget
currentTarget
read-only ,
inherited
bool
defaultPrevented
read-only ,
inherited
int
eventPhase
read-only ,
inherited
List
<
Node
>
path
read-only ,
inherited
This event's path, taking into account shadow DOM.
EventTarget
target
read-only ,
inherited
int
timeStamp
read-only ,
inherited
String
type
read-only ,
inherited
int
detail
read-only ,
inherited
WindowBase
view
read-only ,
inherited
int
which
read-only ,
inherited
Point
layer
read-only ,
inherited
Point
page
read-only ,
inherited
Constructors
MouseEvent
(
String
type
, {
Window
view
,
int
detail
:
0
,
int
screenX
:
0
,
int
screenY
:
0
,
int
clientX
:
0
,
int
clientY
:
0
,
int
button
:
0
,
bool
canBubble
:
true
,
bool
cancelable
:
true
,
bool
ctrlKey
:
false
,
bool
altKey
:
false
,
bool
shiftKey
:
false
,
bool
metaKey
:
false
,
EventTarget
relatedTarget
})
Methods
preventDefault
(
) →
void
inherited
stopImmediatePropagation
(
) →
void
inherited
stopPropagation
(
) →
void
inherited