NextSlideAnimation constructor

const NextSlideAnimation({
  1. Key? key,
  2. required Widget child,
  3. Duration duration = const Duration(milliseconds: 350),
  4. Duration delay = Duration.zero,
  5. NextSlideVariant? variant = NextSlideVariant.slideInLeft,
  6. AnimationController? controller,
  7. bool loop = false,
  8. double viewPort = 0.1,
  9. bool startAnimation = true,
  10. double initialPosition = 100,
  11. Key? visibilityKey,
})

Implementation

const NextSlideAnimation(
    {Key? key,
    required this.child,
    this.duration = const Duration(milliseconds: 350),
    this.delay = Duration.zero,
    this.variant = NextSlideVariant.slideInLeft,
    this.controller,
    this.loop = false,
    this.viewPort = 0.1,
    this.startAnimation = true,
    this.initialPosition = 100,
    this.visibilityKey})
    : super(key: key);