MouseService class

A service that tracks the state of mouse buttons (left, right, and middle).

This service can be used in conjunction with a Listener widget to monitor mouse button press and release events.

Constructors

MouseService({required ProImageEditorConfigs configs, required LayerInteractionManager interactionManager})
A service responsible for handling mouse-related configurations and actions.

Properties

configs → ProImageEditorConfigs
Configuration options for the Image Editor.
final
hashCode → int
The hash code for this object.
no setterinherited
interactionManager → LayerInteractionManager
A helper class responsible for managing layer interactions in the editor.
final
isMiddleMousePressed → bool
Whether the middle mouse button is currently pressed.
no setter
isPrimaryMousePressed → bool
Whether the primary (left) mouse button is currently pressed.
no setter
isSecondaryMousePressed → bool
Whether the secondary (right) mouse button is currently pressed.
no setter
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
onPointerDown(PointerEvent event) → void
Handles a PointerEvent to update mouse button press states.
onPointerUp(PointerUpEvent event) → void
Handles a PointerUpEvent to update mouse button release states.
toString() → String
A string representation of this object.
inherited
validateDragAction({PointerEvent? event}) → bool
Validates whether the drag action is allowed based on the current mouse button action.
validateMultiSelectAction({PointerEvent? event}) → bool
Validates whether the multi-select action is allowed.
validatePanAction({PointerEvent? event}) → bool
Validates whether the pan action can be performed based on the current configuration.

Operators

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