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