OnGesture.tertiaryPress constructor

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

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

Equivalent to middle-click on desktop, for advanced actions like tab opening in BottomNavigationBar. action executes on detection, configurable via behavior and supportedDevices. Supports ArcaneTheme feedback and HapticFeedback, ensuring efficient gesture handling without rebuilds.

Implementation

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