FToastMotionDelta.delta constructor
const
FToastMotionDelta.delta({
- 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,
Creates a partial modification of a FToastMotion.
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
const factory FToastMotionDelta.delta({
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,
}) = _FToastMotionDelta;