HoldDetector constructor
const
HoldDetector({
- Key? key,
- GestureTapCallback? onTap,
- GestureHoldCancelCallback? onCancel,
- Duration? holdTimeout,
- HitTestBehavior behavior = HitTestBehavior.translucent,
- bool enableHapticFeedback = false,
- bool excludeFromSemantics = false,
- required GestureHoldCallback onHold,
- 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);