HoldDetector constructor

const HoldDetector({
  1. Key? key,
  2. GestureTapCallback? onTap,
  3. GestureHoldCancelCallback? onCancel,
  4. Duration? holdTimeout,
  5. HitTestBehavior behavior = HitTestBehavior.translucent,
  6. bool enableHapticFeedback = false,
  7. bool excludeFromSemantics = false,
  8. required GestureHoldCallback onHold,
  9. required Widget child,
})

Implementation

const HoldDetector({
  Key? key,
  this.onTap,
  this.onCancel,
  this.holdTimeout,
  this.behavior = HitTestBehavior.translucent,
  this.enableHapticFeedback = false,
  this.excludeFromSemantics = false,
  required this.onHold,
  required this.child,
}) : super(key: key);