Gesture class Null safety
Information about a gesture.
A gesture is triggered by pointer events, including touch, stylus, or mouse. Gesture types are refering to GestureDetector (See details in GestureType).
This is carried as payload by GestureSignal.
See also:
- GestureSignal, which signal carries gesture as payload.
Constructors
- Gesture(GestureType type, PointerDeviceKind device, Offset localPosition, Size chartSize, dynamic details, {Offset? localMoveStart, ScaleUpdateDetails? preScaleDetail})
- Creates a gesture.
Properties
- chartSize → Size
-
The current size of the chart.
final
- details → dynamic
-
Details about this gesture.
final
- device → PointerDeviceKind
-
the kind of device that triggers the pointer event.
final
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- localMoveStart → Offset?
-
The local position of pointer when a scale or long press starts.
final
- localPosition → Offset
-
The local position of the pointer event that triggers this gesture.
final
- preScaleDetail → ScaleUpdateDetails?
-
Details of previous scale update.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- type → GestureType
-
The gesture type.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited