MouseEvent class Events

Represents a mouse input event.

Includes the event type, position, and button used.

Inheritance

Constructors

MouseEvent.new({required MouseEventType type, required int x, required int y, required int button})
Creates a mouse event with the given type, x, y and button.

Properties

button int
The mouse button pressed.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type MouseEventType
The type of mouse action performed.
final
x int
The horizontal position of the cursor.
final
y int
The vertical position of the cursor.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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