copyWith method
- @useResult
- Duration? entranceDuration,
- Duration? dismissDuration,
- Duration? transitionDuration,
- Duration? reentranceDuration,
- Duration? exitDuration,
- Duration? swipeCompletionDuration,
- Curve? entranceCurve,
- Curve? dismissCurve,
- Curve? transitionCurve,
- Curve? reentranceCurve,
- Curve? exitCurve,
- Curve? swipeCompletionCurve,
- Animatable<
double> ? entranceDismissFadeTween,
Returns a copy of this FToastMotion with the given properties replaced.
Parameters
- FToastMotion.entranceDuration - The duration of the toast's entrance when it is initially added to to toaster.
- FToastMotion.dismissDuration - The duration of the toast's exit animation when it is dismissed.
- FToastMotion.transitionDuration - The duration of the toast's transition between places in the toaster.
- FToastMotion.reentranceDuration - The duration of the toast's fade-in animation when another toast has been dismissed and this toast re-enters the toaster.
- FToastMotion.exitDuration - The duration of the toast's fade-out animation when the number of toasts in a toaster exceeds the maximum allowed and this toast is hidden.
- FToastMotion.swipeCompletionDuration - The toast's swipe completion animation duration.
- FToastMotion.entranceCurve - The toast's initial entrance animation curve.
- FToastMotion.dismissCurve - The toast's exit animation curve.
- FToastMotion.transitionCurve - The toast's transition animation curve.
- FToastMotion.reentranceCurve - The curve of the toast's fade-in animation when another toast has been dismissed and this toast re-enters the toaster.
- FToastMotion.exitCurve - The curve of the toast's fade-out animation when the number of toasts in a toaster exceeds the maximum allowed and this toast is hidden.
- FToastMotion.swipeCompletionCurve - The toast's swipe completion animation curve.
- FToastMotion.entranceDismissFadeTween - The toast's initial entrance's opacity and dismiss's fade tween.
Implementation
@useResult
FToastMotion copyWith({
Duration? entranceDuration,
Duration? dismissDuration,
Duration? transitionDuration,
Duration? reentranceDuration,
Duration? exitDuration,
Duration? swipeCompletionDuration,
Curve? entranceCurve,
Curve? dismissCurve,
Curve? transitionCurve,
Curve? reentranceCurve,
Curve? exitCurve,
Curve? swipeCompletionCurve,
Animatable<double>? entranceDismissFadeTween,
}) => FToastMotion(
entranceDuration: entranceDuration ?? this.entranceDuration,
dismissDuration: dismissDuration ?? this.dismissDuration,
transitionDuration: transitionDuration ?? this.transitionDuration,
reentranceDuration: reentranceDuration ?? this.reentranceDuration,
exitDuration: exitDuration ?? this.exitDuration,
swipeCompletionDuration: swipeCompletionDuration ?? this.swipeCompletionDuration,
entranceCurve: entranceCurve ?? this.entranceCurve,
dismissCurve: dismissCurve ?? this.dismissCurve,
transitionCurve: transitionCurve ?? this.transitionCurve,
reentranceCurve: reentranceCurve ?? this.reentranceCurve,
exitCurve: exitCurve ?? this.exitCurve,
swipeCompletionCurve: swipeCompletionCurve ?? this.swipeCompletionCurve,
entranceDismissFadeTween: entranceDismissFadeTween ?? this.entranceDismissFadeTween,
);