fadeOut method

Widget fadeOut({
  1. Duration duration = const Duration(milliseconds: 350),
  2. Duration delay = Duration.zero,
  3. AnimationController? controller,
  4. bool startAnimation = true,
  5. double initialPosition = 100,
  6. bool loop = false,
  7. double viewPort = 0.1,
  8. NextFadeOutVariant variant = NextFadeOutVariant.fadeOutLeft,
})

Implementation

Widget fadeOut(
    {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,
    NextFadeOutVariant variant = NextFadeOutVariant.fadeOutLeft}) {
  return NextFadeOutAnimation(
    child: this,
    duration: duration,
    delay: delay,
    controller: controller,
    loop: loop,
    viewPort: viewPort,
    initialPosition: initialPosition,
    startAnimation: startAnimation,
    variant: variant,
  );
}