BounceAnimation constructor

BounceAnimation({
  1. Key? key,
  2. required Duration duration,
  3. required Duration delay,
  4. required Widget child,
  5. ValueSetter<AnimationController>? onComplete,
  6. Curve curve = Curves.bounceOut,
  7. required double begin,
  8. required double end,
  9. double idleValue = 0,
})

Implementation

BounceAnimation({
  super.key,
  required super.duration,
  required super.delay,
  required super.child,
  super.onComplete,
  super.curve = Curves.bounceOut,
  required double begin,
  required double end,
  super.idleValue = 0,
}) : super(
        builder: (context, value, child) => Transform.scale(
          scale: 1 + value.abs(),
          child: child,
        ),
        tween: Tween<double>(begin: begin, end: end),
      );