OnGesture.longPress constructor

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

Implementation

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