GestureDetails class
A class with details on a gesture and the element where the gesture was detected.
- Annotations
Constructors
- GestureDetails({required GestureKind gestureKind, required PointerDeviceKind pointerDeviceKind, required TextElement element, required String shownText, required String actionText, Offset globalPosition = Offset.zero, Offset localPosition = Offset.zero})
-
Creates a GestureDetails containing details on a gesture
and the element where the gesture was detected.
const
Properties
- actionText → String
-
The string to be passed to gesture callbacks and used basically
for some action.
final
- element → TextElement
-
The text element where the gesture happened.
final
- gestureKind → GestureKind
-
The kind of the gesture that this details information is about.
final
- globalPosition → Offset
-
The global position where a gesture was detected.
final
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- localPosition → Offset
-
The local position where a gesture was detected.
final
- pointerDeviceKind → PointerDeviceKind
-
The kind of pointer.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- shownText → String
-
The string to display.
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