animateWidgetTapFeedback method

Widget animateWidgetTapFeedback({
  1. required VoidCallback? onTap,
  2. TapEffect? effects,
  3. bool animate = true,
})
  1. Tap Feedback Detector

Implementation

Widget animateWidgetTapFeedback({
  required VoidCallback? onTap,
  TapEffect? effects,
  bool animate = true,
}) {
  if (!animate) return InkWell(onTap: onTap, child: this);
  return AnimatedGestureDetector(
    onTap: onTap,
    effectPreset: effects,
    child: this,
  );
}