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(
duration: duration,
delay: delay,
viewPort: viewPort,
controller: controller,
initialPosition: initialPosition,
startAnimation: startAnimation,
variant: variant,
child: this,
);
}