onDoublePressed method
Widget
onDoublePressed(
- VoidCallback action, {
- HitTestBehavior? behavior,
- Set<
PointerDeviceKind> ? supportedDevices,
Adds a handler for double press/tap gestures.
Example:
Text("Double-tap me").onDoublePressed(() => print("Double-tapped"))
Implementation
Widget onDoublePressed(VoidCallback action,
{HitTestBehavior? behavior,
Set<PointerDeviceKind>? supportedDevices}) =>
OnGesture.doublePress(
action: action,
behavior: behavior,
supportedDevices: supportedDevices,
child: this);