dart / 2 / dart-html / mouseevent-class.html

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

Methods

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

Operators

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

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-html/MouseEvent-class.html