ToastAnimation.rotate constructor

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

Rotation animation. Best for playful/casual apps.

Implementation

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