copyWith method

  1. @useResult
FLabelMotion copyWith({
  1. Duration? textStyleTransitionDuration,
  2. Curve? textStyleTransitionCurve,
  3. Duration? errorExpandDuration,
  4. Duration? errorCollapseDuration,
  5. Curve? errorExpandCurve,
  6. Curve? errorCollapseCurve,
  7. Duration? errorFadeInDuration,
  8. Duration? errorFadeOutDuration,
  9. Curve? errorFadeInCurve,
  10. Curve? errorFadeOutCurve,
  11. Animatable<double>? errorFadeTween,
})

Returns a copy of this FLabelMotion with the given properties replaced.

Parameters

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,
);