copyWith method
Returns a copy of this FToasterMotion with the given properties replaced.
Parameters
- FToasterMotion.expandDuration - The duration of the toasts' expansion.
- FToasterMotion.collapseDuration - The duration of the toasts' collapsing.
- FToasterMotion.expandCurve - The animation curve for the toasts' expansion and collapsing.
- FToasterMotion.collapseCurve - The animation curve for the toasts' collapsing.
Implementation
@useResult
FToasterMotion copyWith({
Duration? expandDuration,
Duration? collapseDuration,
Curve? expandCurve,
Curve? collapseCurve,
}) => FToasterMotion(
expandDuration: expandDuration ?? this.expandDuration,
collapseDuration: collapseDuration ?? this.collapseDuration,
expandCurve: expandCurve ?? this.expandCurve,
collapseCurve: collapseCurve ?? this.collapseCurve,
);