OnGesture.secondaryPress constructor

const OnGesture.secondaryPress({
  1. Key? key,
  2. required VoidCallback action,
  3. required Widget child,
  4. HitTestBehavior? behavior,
  5. Set<PointerDeviceKind>? supportedDevices,
})

Creates an OnGesture widget that detects secondary taps/clicks in Arcane UI.

Equivalent to right-click on desktop, useful for contextual menus in Tile or CardSection. The action handles menu invocation, with behavior and supportedDevices for customization. Integrates ArcaneTheme for themed overlays and Semantics for accessible descriptions, paired with InkWell for subtle feedback. Performance-optimized for secondary interactions.

Implementation

const OnGesture.secondaryPress(
    {super.key,
    required this.action,
    required this.child,
    this.behavior,
    this.supportedDevices})
    : type = GestureType.secondaryPress;