copyWith method
- @useResult
- FPersistentSheetMotionDelta? motion,
- double? flingVelocity,
- double? closeProgressThreshold,
Returns a copy of this FPersistentSheetStyle with the given properties replaced.
See customizing widget styles.
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({
FPersistentSheetMotionDelta? motion,
double? flingVelocity,
double? closeProgressThreshold,
}) => .new(
motion: motion?.call(this.motion) ?? this.motion,
flingVelocity: flingVelocity ?? this.flingVelocity,
closeProgressThreshold: closeProgressThreshold ?? this.closeProgressThreshold,
);