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