hapticFeedback property

(Future<void> Function()?) hapticFeedback
final

Haptic feedback on devices where supported, this allows the feedback to when the press happens as the onTap callback may be set to trigger only after the animation is complete if triggerOnTapAfterAnimationComplete is set

Defaults to no feedback, an example would be HapticFeedback.selectionClick

Implementation

final Future<void> Function()? hapticFeedback;