GestureAnimator constructor

const GestureAnimator({
  1. Key? key,
  2. Duration duration = const Duration(milliseconds: 150),
  3. VoidCallback? onTap,
  4. dynamic onTapDown(
    1. TapDownDetails details
    )?,
  5. dynamic onTapUp(
    1. TapUpDetails details
    )?,
  6. VoidCallback? onLongPress,
  7. bool triggerOnTapAfterAnimationComplete = false,
  8. Widget? child,
  9. double scaleSize = 0.9,
  10. double xOffset = 0,
  11. double yOffset = 0,
  12. double blurX = 0,
  13. double blurY = 0,
  14. double opacity = 1,
  15. double skewX = 0,
  16. double skewY = 0,
  17. double rotation = 0,
  18. int numberOfPlays = 1,
  19. Curve curve = Curves.linear,
  20. Future<void> hapticFeedback()?,
})

Implementation

const GestureAnimator({
  Key? key,
  this.duration = const Duration(milliseconds: 150),
  this.onTap,
  this.onTapDown,
  this.onTapUp,
  this.onLongPress,
  this.triggerOnTapAfterAnimationComplete = false,
  this.child,
  this.scaleSize = 0.9,
  this.xOffset = 0,
  this.yOffset = 0,
  this.blurX = 0,
  this.blurY = 0,
  this.opacity = 1,
  this.skewX = 0,
  this.skewY = 0,
  this.rotation = 0,
  this.numberOfPlays = 1,
  this.curve = Curves.linear,
  this.hapticFeedback,
}) : super(key: key);