copyWith method
- @useResult
- Duration? textStyleTransitionDuration,
- Curve? textStyleTransitionCurve,
- Duration? errorExpandDuration,
- Duration? errorCollapseDuration,
- Curve? errorExpandCurve,
- Curve? errorCollapseCurve,
- Duration? errorFadeInDuration,
- Duration? errorFadeOutDuration,
- Curve? errorFadeInCurve,
- Curve? errorFadeOutCurve,
- Animatable<
double> ? errorFadeTween,
Returns a copy of this FLabelMotion with the given properties replaced.
Parameters
- FLabelMotion.textStyleTransitionDuration - The text style transition duration.
- FLabelMotion.textStyleTransitionCurve - The text style transition curve.
- FLabelMotion.errorExpandDuration - The error expansion duration.
- FLabelMotion.errorCollapseDuration - The error collapse duration.
- FLabelMotion.errorExpandCurve - The error expansion curve.
- FLabelMotion.errorCollapseCurve - The error collapse curve.
- FLabelMotion.errorFadeInDuration - The error fade in duration.
- FLabelMotion.errorFadeOutDuration - The error fade out duration.
- FLabelMotion.errorFadeInCurve - The error fade in curve.
- FLabelMotion.errorFadeOutCurve - The error fade out curve.
- FLabelMotion.errorFadeTween - The error fade tween.
Implementation
@useResult
FLabelMotion copyWith({
Duration? textStyleTransitionDuration,
Curve? textStyleTransitionCurve,
Duration? errorExpandDuration,
Duration? errorCollapseDuration,
Curve? errorExpandCurve,
Curve? errorCollapseCurve,
Duration? errorFadeInDuration,
Duration? errorFadeOutDuration,
Curve? errorFadeInCurve,
Curve? errorFadeOutCurve,
Animatable<double>? errorFadeTween,
}) => .new(
textStyleTransitionDuration: textStyleTransitionDuration ?? this.textStyleTransitionDuration,
textStyleTransitionCurve: textStyleTransitionCurve ?? this.textStyleTransitionCurve,
errorExpandDuration: errorExpandDuration ?? this.errorExpandDuration,
errorCollapseDuration: errorCollapseDuration ?? this.errorCollapseDuration,
errorExpandCurve: errorExpandCurve ?? this.errorExpandCurve,
errorCollapseCurve: errorCollapseCurve ?? this.errorCollapseCurve,
errorFadeInDuration: errorFadeInDuration ?? this.errorFadeInDuration,
errorFadeOutDuration: errorFadeOutDuration ?? this.errorFadeOutDuration,
errorFadeInCurve: errorFadeInCurve ?? this.errorFadeInCurve,
errorFadeOutCurve: errorFadeOutCurve ?? this.errorFadeOutCurve,
errorFadeTween: errorFadeTween ?? this.errorFadeTween,
);