copyWith method
- @useResult
- FPersistentSheetMotion motion(
- FPersistentSheetMotion motion
- double? flingVelocity,
- double? closeProgressThreshold,
Returns a copy of this FPersistentSheetStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FPersistentSheetStyle.motion - The motion-related properties for a persistent sheet.
- FPersistentSheetStyle.flingVelocity - The minimum velocity to initiate a fling.
- FPersistentSheetStyle.closeProgressThreshold - The threshold for determining whether the sheet is closing.
Implementation
@useResult
FPersistentSheetStyle copyWith({
FPersistentSheetMotion Function(FPersistentSheetMotion motion)? motion,
double? flingVelocity,
double? closeProgressThreshold,
}) => FPersistentSheetStyle(
motion: motion != null ? motion(this.motion) : this.motion,
flingVelocity: flingVelocity ?? this.flingVelocity,
closeProgressThreshold: closeProgressThreshold ?? this.closeProgressThreshold,
);