ToastAnimation.scale constructor

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

Scale animation that grows from center. Best for attention-grabbing notifications.

Implementation

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