TapAnimation constructor
const
TapAnimation({
- void onTap()?,
- Widget? child,
- Widget builder(
- BuildContext context,
- Widget? child,
- double animation,
- bool tapped,
- Duration duration = const Duration(milliseconds: 600),
- Curve curve = Curves.easeOutCirc,
- Duration delay = Duration.zero,
- double angle = 0,
- double opacity = 1,
- double scale = 1,
- Offset offset = Offset.zero,
- Color? highlightColor,
- Color? splashColor,
- Key? key,
Implementation
const TapAnimation({
this.onTap,
this.child,
this.builder,
this.duration = const Duration(milliseconds: 600),
this.curve = Curves.easeOutCirc,
this.delay = Duration.zero,
this.angle = 0,
this.opacity = 1,
this.scale = 1,
this.offset = Offset.zero,
this.highlightColor,
this.splashColor,
Key? key,
}) : assert(opacity >= 0 && opacity <= 1),
assert(child != null || builder != null),
super(key: key);