ToastAnimation.slideOutLeft constructor

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

Slide out to the left. Pairs with slideFromLeft entries or for a swipe-away feel.

Implementation

factory ToastAnimation.slideOutLeft({Duration? duration, Curve? curve}) {
  return ToastAnimation._(
    type: ToastAnimationType.slideFromLeft,
    duration: duration ?? const Duration(milliseconds: 300),
    curve: curve ?? Curves.easeInCubic,
  );
}