copyWith method
CountdownAnimationConfig
copyWith(
{ - bool? enabled,
- Duration? duration,
- Curve? curve,
- bool? enablePulseAnimation,
- int? pulseThreshold,
- bool? enableShakeAnimation,
- bool? enableScaleAnimation,
- bool? enableFadeAnimation,
- Widget customAnimationBuilder(
- Widget child,
- Animation<double> animation
)?,
})
Implementation
CountdownAnimationConfig copyWith({
bool? enabled,
Duration? duration,
Curve? curve,
bool? enablePulseAnimation,
int? pulseThreshold,
bool? enableShakeAnimation,
bool? enableScaleAnimation,
bool? enableFadeAnimation,
Widget Function(Widget child, Animation<double> animation)?
customAnimationBuilder,
}) {
return CountdownAnimationConfig(
enabled: enabled ?? this.enabled,
duration: duration ?? this.duration,
curve: curve ?? this.curve,
enablePulseAnimation: enablePulseAnimation ?? this.enablePulseAnimation,
pulseThreshold: pulseThreshold ?? this.pulseThreshold,
enableShakeAnimation: enableShakeAnimation ?? this.enableShakeAnimation,
enableScaleAnimation: enableScaleAnimation ?? this.enableScaleAnimation,
enableFadeAnimation: enableFadeAnimation ?? this.enableFadeAnimation,
customAnimationBuilder:
customAnimationBuilder ?? this.customAnimationBuilder,
);
}