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