ToastAnimation.fade constructor

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

Simple fade in/out animation. Best for subtle, non-intrusive notifications.

Implementation

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