onDoublePressed method

Widget onDoublePressed(
  1. VoidCallback action, {
  2. HitTestBehavior? behavior,
  3. 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);