DragAction class final

Press at fromX/fromY, move to toX/toY, release — drag and drop, sliders, canvas gestures (ADR 0053). Behavioral profiles lower the whole path through humanized segments; plain dispatch is one press, one move, one release.

Inheritance
Annotations
  • @immutable

Constructors

DragAction(double fromX, double fromY, double toX, double toY, {String button = 'left', List<String> modifiers = const []})
Creates a drag from (fromX, fromY) to (toX, toY).
const

Properties

button → String
Pointer button held through the drag: left (default), right, or middle.
final
fromX → double
Press X in surface coordinates.
final
fromY → double
Press Y in surface coordinates.
final
hashCode → int
The hash code for this object.
no setterinherited
modifiers → List<String>
Keyboard modifiers held through the drag (meta+drag for window moves, shift+drag for constrained axes) — a subset of shift/control/alt/meta, normalized lowercase (ADR 0053).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
toX → double
Release X in surface coordinates.
final
toY → double
Release Y in surface coordinates.
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