MouseEvent class
The interface represents events that occur due to the user
interacting with a pointing device (such as a mouse).
Common events using this interface include click
, dblclick
,
mouseup
, mousedown
.
derives from UIEvent, which in turn derives from Event.
Though the MouseEvent.initMouseEvent()
method is kept for
backward compatibility, creating of a object should be done using
the MouseEvent() constructor.
Several more specific events are based on , including WheelEvent, DragEvent, and PointerEvent.
Event
UIEvent
MouseEvent
- Implemented types
- Implementers
- Available Extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- MouseEvent(String type, [MouseEventInit? eventInitDict])
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited