slide method

Widget slide({
  1. Duration duration = const Duration(milliseconds: 350),
  2. Duration delay = Duration.zero,
  3. AnimationController? controller,
  4. bool loop = false,
  5. double viewPort = 0.1,
  6. bool startAnimation = true,
  7. double initialPosition = 100,
  8. 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,
  );
}