Gesture class

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 GestureEvent.

See also:

Constructors

Gesture(GestureType type, PointerDeviceKind device, Offset localPosition, Size chartSize, dynamic details, {Key? chartKey, Offset? localMoveStart, ScaleUpdateDetails? preScaleDetail})
Creates a gesture.

Properties

chartKey Key?
The key of the emitting chart.
final
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.
no setterinherited
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.
no setterinherited
type GestureType
The gesture type.
final

Methods

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

Operators

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