copyWith method

  1. @useResult
FPersistentSheetStyle copyWith({
  1. FPersistentSheetMotionDelta? motion,
  2. double? flingVelocity,
  3. double? closeProgressThreshold,
})

Returns a copy of this FPersistentSheetStyle with the given properties replaced.

See customizing widget styles.

Parameters

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,
);