onGesture property
The callback function called when a gesture happens on a string.
The function is called on the following events:
- A press of the secondary button
- A press of the tertiary button
- An enter of the mouse pointer
- An exit of the mouse pointer
The gestureKind
contained in the GestureDetails object
indicates which of the above events has triggered the function;
respectively GestureKind.secondaryTap, GestureKind.tertiaryTap,
GestureKind.enter and GestureKind.exit.
The argument with the same name in the relevant definition takes precedence over this.
Note that unlike onTap and onLongPress, it does not affect text styling whether this argument is specified or not.
For a press event of the primary button, use onTap and onLongPress.
Implementation
final GestureCallback? onGesture;