LongPressDetector constructor

const LongPressDetector({
  1. Key? key,
  2. required Widget child,
  3. required VoidCallback onLongPress,
  4. bool enabled = true,
})

Creates a LongPressDetector.

Implementation

const LongPressDetector({
  super.key,
  required this.child,
  required this.onLongPress,
  this.enabled = true,
});