ToastAnimation.slideFromRight constructor

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

Slide from right side of screen. Best for right-to-left reading flow.

Implementation

factory ToastAnimation.slideFromRight({Duration? duration, Curve? curve}) {
  return ToastAnimation._(
    type: ToastAnimationType.slideFromRight,
    duration: duration,
    curve: curve,
  );
}