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