bounce method
Widget
bounce({
- Duration duration = const Duration(milliseconds: 350),
- Duration delay = Duration.zero,
- AnimationController? controller,
- bool startAnimation = true,
- double initialPosition = 100,
- bool loop = false,
- double viewPort = 0.1,
- NextBounceVariant variant = NextBounceVariant.bounceInLeft,
Implementation
Widget bounce(
{Duration duration = const Duration(milliseconds: 350),
Duration delay = Duration.zero,
AnimationController? controller,
bool startAnimation = true,
double initialPosition = 100,
bool loop = false,
double viewPort = 0.1,
NextBounceVariant variant = NextBounceVariant.bounceInLeft}) {
return NextBounceAnimation(
child: this,
duration: duration,
delay: delay,
loop: loop,
viewPort: viewPort,
controller: controller,
initialPosition: initialPosition,
startAnimation: startAnimation,
variant: variant,
);
}