copyWith method

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

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

Consider using the CLI to generate a style.

Parameters

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