copyWith method

ToastAnimation copyWith({
  1. ToastAnimationType? type,
  2. Duration? duration,
  3. Curve? curve,
})

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,
  );
}