copyWith method

AnimationConfig copyWith({
  1. double? scale,
  2. double? scaleX,
  3. double? scaleY,
  4. double? opacity,
  5. Offset? translate,
  6. double? translateX,
  7. double? translateY,
  8. double? rotate,
  9. SlideDirection? slideIn,
  10. Duration? duration,
  11. Duration? delay,
  12. Curve? curve,
  13. bool? repeat,
  14. bool? reverse,
  15. int? repeatCount,
  16. bool? persist,
  17. bool? bounce,
  18. bool? pulse,
})

Implementation

AnimationConfig copyWith({
  double? scale,
  double? scaleX,
  double? scaleY,
  double? opacity,
  Offset? translate,
  double? translateX,
  double? translateY,
  double? rotate,
  SlideDirection? slideIn,
  Duration? duration,
  Duration? delay,
  Curve? curve,
  bool? repeat,
  bool? reverse,
  int? repeatCount,
  bool? persist,
  bool? bounce,
  bool? pulse,
}) {
  return AnimationConfig(
    scale: scale ?? this.scale,
    scaleX: scaleX ?? this.scaleX,
    scaleY: scaleY ?? this.scaleY,
    opacity: opacity ?? this.opacity,
    translate: translate ?? this.translate,
    translateX: translateX ?? this.translateX,
    translateY: translateY ?? this.translateY,
    rotate: rotate ?? this.rotate,
    slideIn: slideIn ?? this.slideIn,
    duration: duration ?? this.duration,
    delay: delay ?? this.delay,
    curve: curve ?? this.curve,
    repeat: repeat ?? this.repeat,
    reverse: reverse ?? this.reverse,
    repeatCount: repeatCount ?? this.repeatCount,
    persist: persist ?? this.persist,
    bounce: bounce ?? this.bounce,
    pulse: pulse ?? this.pulse,
  );
}