onLongSecondaryPressed method

Widget onLongSecondaryPressed(
  1. VoidCallback action, {
  2. HitTestBehavior? behavior,
  3. Set<PointerDeviceKind>? supportedDevices,
})

Adds a handler for long press gestures with the secondary button.

Example:

Text("Long right-click me").onLongSecondaryPressed(() => print("Long right-clicked"))

Implementation

Widget onLongSecondaryPressed(VoidCallback action,
        {HitTestBehavior? behavior,
        Set<PointerDeviceKind>? supportedDevices}) =>
    OnGesture.longSecondaryPress(
        action: action,
        behavior: behavior,
        supportedDevices: supportedDevices,
        child: this);