copyWith method
- @useResult
- Curve? expandCurve,
- Curve? collapseCurve,
- Curve? fadeInCurve,
- Curve? fadeOutCurve,
- Animatable<
double> ? scaleTween, - Animatable<
double> ? fadeTween, - Duration? insetDuration,
- Curve? insetCurve,
Returns a copy of this FDialogMotion with the given properties replaced.
Parameters
- FDialogMotion.expandCurve - The curve used for the dialog's expansion animation when entering.
- FDialogMotion.collapseCurve - The curve used for the dialog's collapse animation when exiting.
- FDialogMotion.fadeInCurve - The curve used for the dialog's fade-in animation when entering.
- FDialogMotion.fadeOutCurve - The curve used for the dialog's fade-out animation when exiting.
- FDialogMotion.scaleTween - The tween used to animate the dialog's scale in and out.
- FDialogMotion.fadeTween - The tween used to animate the dialog's fade in and out.
- FDialogMotion.insetDuration - The duration of the animation to show when the system keyboard intrudes into the space that the dialog is placed in.
- FDialogMotion.insetCurve - The curve to use for the animation shown when the system keyboard intrudes into the space that the dialog is placed in.
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,
);