copyWith method

  1. @useResult
FDialogMotion copyWith({
  1. Curve? expandCurve,
  2. Curve? collapseCurve,
  3. Curve? fadeInCurve,
  4. Curve? fadeOutCurve,
  5. Animatable<double>? scaleTween,
  6. Animatable<double>? fadeTween,
  7. Duration? insetDuration,
  8. Curve? insetCurve,
})

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

Parameters

Implementation

@useResult
FDialogMotion copyWith({
  Curve? expandCurve,
  Curve? collapseCurve,
  Curve? fadeInCurve,
  Curve? fadeOutCurve,
  Animatable<double>? scaleTween,
  Animatable<double>? fadeTween,
  Duration? insetDuration,
  Curve? insetCurve,
}) => FDialogMotion(
  expandCurve: expandCurve ?? this.expandCurve,
  collapseCurve: collapseCurve ?? this.collapseCurve,
  fadeInCurve: fadeInCurve ?? this.fadeInCurve,
  fadeOutCurve: fadeOutCurve ?? this.fadeOutCurve,
  scaleTween: scaleTween ?? this.scaleTween,
  fadeTween: fadeTween ?? this.fadeTween,
  insetDuration: insetDuration ?? this.insetDuration,
  insetCurve: insetCurve ?? this.insetCurve,
);