copyWith method
Create a copy with overridden properties.
Implementation
LanguageSwitcherAnimationStyle copyWith({
double? triggerScale,
Duration? triggerScaleDuration,
Curve? triggerScaleCurve,
AnimationStyle? popupAnimationStyle,
Duration? popupContentFadeDuration,
double? tapScale,
Duration? tapScaleDuration,
Curve? tapScaleCurve,
Duration? transitionDuration,
Curve? transitionCurve,
Curve? checkmarkCurve,
}) {
return LanguageSwitcherAnimationStyle(
triggerScale: triggerScale ?? this.triggerScale,
triggerScaleDuration: triggerScaleDuration ?? this.triggerScaleDuration,
triggerScaleCurve: triggerScaleCurve ?? this.triggerScaleCurve,
popupAnimationStyle: popupAnimationStyle ?? this.popupAnimationStyle,
popupContentFadeDuration:
popupContentFadeDuration ?? this.popupContentFadeDuration,
tapScale: tapScale ?? this.tapScale,
tapScaleDuration: tapScaleDuration ?? this.tapScaleDuration,
tapScaleCurve: tapScaleCurve ?? this.tapScaleCurve,
transitionDuration: transitionDuration ?? this.transitionDuration,
transitionCurve: transitionCurve ?? this.transitionCurve,
checkmarkCurve: checkmarkCurve ?? this.checkmarkCurve,
);
}