MouseEvent class

Inheritance
Implementers
Annotations
  • @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
read-only
bubbles bool?
read-onlyinherited
button int
read-only
buttons int?
read-only
cancelable bool?
read-onlyinherited
client Point<num>
read-only
composed bool?
read-onlyinherited
ctrlKey bool
read-only
currentTarget EventTarget?
read-onlyinherited
dataTransfer DataTransfer
read-only
defaultPrevented bool
read-onlyinherited
detail int?
read-onlyinherited
eventPhase int
read-onlyinherited
fromElement Node?
The nonstandard way to access the element that the mouse comes from in the case of a mouseover event.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
isTrusted bool?
read-onlyinherited
layer Point<num>
read-only
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-onlyinherited
metaKey bool
read-only
movement Point<num>
read-only
offset Point<num>
The coordinates of the mouse pointer in target node coordinates.
read-only
page Point<num>
read-only
path List<EventTarget>
read-onlyinherited
region String?
read-only
relatedTarget EventTarget?
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
screen Point<num>
read-only
shiftKey bool
read-only
sourceCapabilities InputDeviceCapabilities?
read-onlyinherited
target EventTarget?
read-onlyinherited
timeStamp num?
read-onlyinherited
toElement Node?
The nonstandard way to access the element that the mouse goes to in the case of a mouseout event.
read-only
type String
read-onlyinherited
view WindowBase?
read-onlyinherited

Methods

composedPath() List<EventTarget>
inherited
getModifierState(String keyArg) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
preventDefault() → void
inherited
stopImmediatePropagation() → void
inherited
stopPropagation() → void
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited