onTertiaryPressed method

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

Adds a handler for tertiary press gestures (equivalent to middle-click).

Example:

Text("Middle-click me").onTertiaryPressed(() => print("Middle clicked"))

Implementation

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