copyWith method

CountdownAnimationConfig copyWith({
  1. bool? enabled,
  2. Duration? duration,
  3. Curve? curve,
  4. bool? enablePulseAnimation,
  5. int? pulseThreshold,
  6. bool? enableShakeAnimation,
  7. bool? enableScaleAnimation,
  8. bool? enableFadeAnimation,
  9. Widget customAnimationBuilder(
    1. Widget child,
    2. 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,
  );
}