ToastAnimation.slideOutBottomFade constructor

ToastAnimation.slideOutBottomFade({
  1. Duration? duration,
  2. Curve? curve,
})

Slide out to the bottom with a fade. Pairs with springFromBottom / slideFromBottomFade entries.

Implementation

factory ToastAnimation.slideOutBottomFade({
  Duration? duration,
  Curve? curve,
}) {
  return ToastAnimation._(
    type: ToastAnimationType.slideFromBottomFade,
    duration: duration ?? const Duration(milliseconds: 300),
    curve: curve ?? Curves.easeInBack,
  );
}