ToastAnimation.slideOutRight constructor

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

Slide out to the right. Pairs with slideFromRight entries or for a swipe-away feel.

Implementation

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