copyWith method
Returns a copy of this FModalSheetMotion with the given properties replaced.
Parameters
- FModalSheetMotion.barrierCurve - The barrier's curve.
- FModalSheetMotion.expandDuration - The duration of the sheet's expansion animation.
- FModalSheetMotion.collapseDuration - The duration of the sheet's collapsing animation.
- FModalSheetMotion.curve - The curve of the sheet's expansion and collapse.
Implementation
@useResult
FModalSheetMotion copyWith({
Curve? barrierCurve,
Duration? expandDuration,
Duration? collapseDuration,
Curve? curve,
}) => FModalSheetMotion(
barrierCurve: barrierCurve ?? this.barrierCurve,
expandDuration: expandDuration ?? this.expandDuration,
collapseDuration: collapseDuration ?? this.collapseDuration,
curve: curve ?? this.curve,
);