ToastAnimation.slideOutBottom constructor

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

Slide out to the bottom of the screen. Pairs with springFromBottom / slideFromBottom entries.

Implementation

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