onSecondaryPressed method

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

Adds a handler for secondary press gestures (right-click) to this widget in Arcane UI.

For contextual actions in Tile or CardSection, triggering action on secondary press. Configurable behavior and supportedDevices for precise control. Integrates ArcaneTheme for menu theming and Semantics for descriptions, performant for secondary interactions.

Implementation

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