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