ToastAnimation.springFromBottom constructor

ToastAnimation.springFromBottom({
  1. Duration? duration,
})

Spring animation from bottom with overshoot. Best for smooth but noticeable entry.

Implementation

factory ToastAnimation.springFromBottom({Duration? duration}) {
  return ToastAnimation._(
    type: ToastAnimationType.slideFromBottomFade,
    duration: duration ?? const Duration(milliseconds: 400),
    curve: Curves.easeOutBack,
  );
}