onSecondaryPressed method
Widget
onSecondaryPressed(
- VoidCallback action, {
- HitTestBehavior? behavior,
- Set<
PointerDeviceKind> ? supportedDevices,
Adds a handler for secondary press gestures (equivalent to right-click).
Example:
Text("Right-click me").onSecondaryPressed(() => print("Right clicked"))
Implementation
Widget onSecondaryPressed(VoidCallback action,
{HitTestBehavior? behavior,
Set<PointerDeviceKind>? supportedDevices}) =>
OnGesture.secondaryPress(
action: action,
behavior: behavior,
supportedDevices: supportedDevices,
child: this);