copyWith method

ButtonAnimationStyle copyWith({
  1. ButtonAnimationType? type,
  2. Duration? duration,
  3. Curve? curve,
  4. bool? enableHapticFeedback,
  5. double? translateY,
  6. double? shadowOffset,
  7. double? scaleMin,
  8. double? scaleMax,
  9. double? pulseScale,
  10. double? squeezeX,
  11. double? squeezeY,
  12. double? jellyStrength,
  13. Color? shineColor,
  14. double? shineWidth,
  15. double? rippleScale,
  16. double? morphRadius,
  17. double? shakeOffset,
  18. int? shakeCount,
})

Create a copy of this style with overridden properties

Implementation

ButtonAnimationStyle copyWith({
  ButtonAnimationType? type,
  Duration? duration,
  Curve? curve,
  bool? enableHapticFeedback,
  double? translateY,
  double? shadowOffset,
  double? scaleMin,
  double? scaleMax,
  double? pulseScale,
  double? squeezeX,
  double? squeezeY,
  double? jellyStrength,
  Color? shineColor,
  double? shineWidth,
  double? rippleScale,
  double? morphRadius,
  double? shakeOffset,
  int? shakeCount,
}) {
  return ButtonAnimationStyle._(
    type: type ?? this.type,
    duration: duration ?? this.duration,
    curve: curve ?? this.curve,
    enableHapticFeedback: enableHapticFeedback ?? this.enableHapticFeedback,
    translateY: translateY ?? this.translateY,
    shadowOffset: shadowOffset ?? this.shadowOffset,
    scaleMin: scaleMin ?? this.scaleMin,
    scaleMax: scaleMax ?? this.scaleMax,
    pulseScale: pulseScale ?? this.pulseScale,
    squeezeX: squeezeX ?? this.squeezeX,
    squeezeY: squeezeY ?? this.squeezeY,
    jellyStrength: jellyStrength ?? this.jellyStrength,
    shineColor: shineColor ?? this.shineColor,
    shineWidth: shineWidth ?? this.shineWidth,
    rippleScale: rippleScale ?? this.rippleScale,
    morphRadius: morphRadius ?? this.morphRadius,
    shakeOffset: shakeOffset ?? this.shakeOffset,
    shakeCount: shakeCount ?? this.shakeCount,
  );
}