Inheritance
Implemented by
Annotations
  • @DomName('MouseEvent')

Static Properties

instanceRuntimeType Type

@Deprecated("Internal Use Only"), read-only

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 })

factory
MouseEvent.internal_()

Properties

altKey bool

@DocsEditable(), @DomName('MouseEvent.altKey'), read-only
button int

@DocsEditable(), @DomName('MouseEvent.button'), read-only
buttons int

@DocsEditable(), @DomName('MouseEvent.buttons'), @Experimental(), read-only
client Point

@DomName('MouseEvent.clientX'), @DomName('MouseEvent.clientY'), read-only
clientX int

@deprecated, read-only
clientY int

@deprecated, read-only
ctrlKey bool

@DocsEditable(), @DomName('MouseEvent.ctrlKey'), read-only
dataTransfer DataTransfer

@DocsEditable(), @DomName('MouseEvent.dataTransfer'), @Unstable(), read-only
fromElement Node

The nonstandard way to access the element that the mouse comes from in the case of a mouseover event.

@deprecated, @DocsEditable(), @DomName('MouseEvent.fromElement'), read-only
layer Point

@DomName('MouseEvent.layerX'), @DomName('MouseEvent.layerY'), read-only
metaKey bool

@DocsEditable(), @DomName('MouseEvent.metaKey'), read-only
movement Point

@DomName('MouseEvent.movementX'), @DomName('MouseEvent.movementY'), @Experimental(), @SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.FIREFOX), read-only
movementX int

@deprecated, read-only
movementY int

@deprecated, read-only
offset Point

The coordinates of the mouse pointer in target node coordinates.

read-only
offsetX int

@deprecated, read-only
offsetY int

@deprecated, read-only
page Point

@DomName('MouseEvent.pageX'), @DomName('MouseEvent.pageY'), read-only
region String

@DocsEditable(), @DomName('MouseEvent.region'), @Experimental(), read-only
relatedTarget EventTarget

@DocsEditable(), @DomName('MouseEvent.relatedTarget'), read-only
screen Point

@DomName('MouseEvent.screenX'), @DomName('MouseEvent.screenY'), read-only
screenX int

@deprecated, read-only
screenY int

@deprecated, read-only
shiftKey bool

@DocsEditable(), @DomName('MouseEvent.shiftKey'), read-only
toElement Node

The nonstandard way to access the element that the mouse goes to in the case of a mouseout event.

@deprecated, @DocsEditable(), @DomName('MouseEvent.toElement'), read-only
bubbles bool

@DocsEditable(), @DomName('Event.bubbles'), read-only, inherited
cancelable bool

@DocsEditable(), @DomName('Event.cancelable'), read-only, inherited
currentTarget EventTarget

@DocsEditable(), @DomName('Event.currentTarget'), read-only, inherited
defaultPrevented bool

@DocsEditable(), @DomName('Event.defaultPrevented'), read-only, inherited
detail int

@DocsEditable(), @DomName('UIEvent.detail'), read-only, inherited
eventPhase int

@DocsEditable(), @DomName('Event.eventPhase'), read-only, inherited
hashCode int

read-only, inherited
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, inherited
path List<EventTarget>

This event's path, taking into account shadow DOM.

@DocsEditable(), @DomName('Event.path'), @Experimental(), read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited
sourceDevice InputDevice

@DocsEditable(), @DomName('UIEvent.sourceDevice'), @Experimental(), read-only, inherited
target EventTarget

@DocsEditable(), @DomName('Event.target'), read-only, inherited
timeStamp int

@DocsEditable(), @DomName('Event.timeStamp'), read-only, inherited
type String

@DocsEditable(), @DomName('Event.type'), read-only, inherited
view WindowBase

@DocsEditable(), @DomName('UIEvent.view'), read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
preventDefault() → void

@DocsEditable(), @DomName('Event.preventDefault'), inherited
stopImmediatePropagation() → void

@DocsEditable(), @DomName('Event.stopImmediatePropagation'), inherited
stopPropagation() → void

@DocsEditable(), @DomName('Event.stopPropagation'), inherited
toString() String

Returns the result of the JavaScript objects toString method.

inherited