animateWidgetTapFeedback method
Widget
animateWidgetTapFeedback({
- required VoidCallback? onTap,
- TapEffect? effects,
- bool animate = true,
- 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,
);
}