onLongSecondaryPressed method
Widget
onLongSecondaryPressed(
- VoidCallback action, {
- HitTestBehavior? behavior,
- 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);