Inheritance
Implemented by
Annotations
  • @DomName('MouseEvent')
  • @Native("MouseEvent,DragEvent")

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

Properties

altKey bool
@DocsEditable(), @DomName('MouseEvent.altKey'), final
button int
@DocsEditable(), @DomName('MouseEvent.button'), final
buttons int
@DocsEditable(), @DomName('MouseEvent.buttons'), @Experimental(), final
client Point
@DomName('MouseEvent.clientX'), @DomName('MouseEvent.clientY'), read-only
ctrlKey bool
@DocsEditable(), @DomName('MouseEvent.ctrlKey'), final
dataTransfer DataTransfer
@DomName('MouseEvent.dataTransfer'), 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'), final
layer Point
@DomName('MouseEvent.layerX'), @DomName('MouseEvent.layerY'), read-only
metaKey bool
@DocsEditable(), @DomName('MouseEvent.metaKey'), final
movement Point
@DomName('MouseEvent.movementX'), @DomName('MouseEvent.movementY'), @Experimental(), @SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.FIREFOX), read-only
offset Point
The coordinates of the mouse pointer in target node coordinates. [...]
read-only
page Point
@DomName('MouseEvent.pageX'), @DomName('MouseEvent.pageY'), read-only
region String
@DocsEditable(), @DomName('MouseEvent.region'), @Experimental(), final
relatedTarget EventTarget
@DocsEditable(), @DomName('MouseEvent.relatedTarget'), read-only
screen Point
@DomName('MouseEvent.screenX'), @DomName('MouseEvent.screenY'), read-only
shiftKey bool
@DocsEditable(), @DomName('MouseEvent.shiftKey'), final
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'), final
bubbles bool
@DocsEditable(), @DomName('Event.bubbles'), final, inherited
cancelable bool
@DocsEditable(), @DomName('Event.cancelable'), final, inherited
currentTarget EventTarget
@DocsEditable(), @DomName('Event.currentTarget'), read-only, inherited
defaultPrevented bool
@DocsEditable(), @DomName('Event.defaultPrevented'), final, inherited
detail int
@DocsEditable(), @DomName('UIEvent.detail'), final, inherited
eventPhase int
@DocsEditable(), @DomName('Event.eventPhase'), final, inherited
hashCode int
read-only, inherited
isTrusted bool
@DocsEditable(), @DomName('Event.isTrusted'), @Experimental(), final, 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(), final, inherited
runtimeType Type
read-only, inherited
scoped bool
@DocsEditable(), @DomName('Event.scoped'), @Experimental(), final, inherited
sourceCapabilities InputDeviceCapabilities
@DocsEditable(), @DomName('UIEvent.sourceCapabilities'), @Experimental(), final, inherited
target EventTarget
@DocsEditable(), @DomName('Event.target'), read-only, inherited
timeStamp double
@DocsEditable(), @DomName('Event.timeStamp'), final, inherited
type String
@DocsEditable(), @DomName('Event.type'), final, inherited
view WindowBase
@DocsEditable(), @DomName('UIEvent.view'), read-only, inherited

Methods

getModifierState(String keyArg) bool
@DocsEditable(), @DomName('MouseEvent.getModifierState'), @Experimental()
deepPath() List<EventTarget>
@DocsEditable(), @DomName('Event.deepPath'), @Experimental(), inherited
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 a string representation of this object.
inherited

Operators

operator ==(other) bool
The equality operator. [...]
inherited