MouseEvent class final Event Handling
Represents a mouse event.
Platform support
Mouse buttons
Some platforms and terminals do not report which mouse button was used.
See button for more information.
Key modifiers
Some platforms and terminals do not report all key modifier combinations for
all mouse event types. For example, macOS reports Ctrl
+ left mouse button
clicks as a right mouse button click.
- Implemented types
- Annotations
-
- @immutable
Constructors
- MouseEvent.new({required int row, required int column, required MouseEventKind kind, required MouseButton? button})
- Creates a mouse event with the given properties.
Properties
-
Which mouse button was used for the event.
final
- column → int
-
The column where the mouse event occurred.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- kind → MouseEventKind
-
The kind of mouse event.
final
- row → int
-
The row where the mouse event occurred.
final
- 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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override