copyWith method
Create a copy of this animation with overridden properties.
Implementation
ToastAnimation copyWith({
ToastAnimationType? type,
Duration? duration,
Curve? curve,
}) {
return ToastAnimation._(
type: type ?? this.type,
duration: duration ?? this.duration,
curve: curve ?? this.curve,
);
}