TapAnimation constructor

const TapAnimation({
  1. void onTap()?,
  2. Widget? child,
  3. Widget builder(
    1. BuildContext context,
    2. Widget? child,
    3. double animation,
    4. bool tapped,
    )?,
  4. Duration duration = const Duration(milliseconds: 600),
  5. Curve curve = Curves.easeOutCirc,
  6. Duration delay = Duration.zero,
  7. double angle = 0,
  8. double opacity = 1,
  9. double scale = 1,
  10. Offset offset = Offset.zero,
  11. Color? highlightColor,
  12. Color? splashColor,
  13. 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);