copyWith method

  1. @useResult
FProgressStyle copyWith({
  1. BoxConstraints? constraints,
  2. BoxDecoration? trackDecoration,
  3. BoxDecoration? fillDecoration,
  4. FProgressMotion motion(
    1. FProgressMotion motion
    )?,
})

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

Consider using the CLI to generate a style.

Parameters

Implementation

@useResult
FProgressStyle copyWith({
  BoxConstraints? constraints,
  BoxDecoration? trackDecoration,
  BoxDecoration? fillDecoration,
  FProgressMotion Function(FProgressMotion motion)? motion,
}) => FProgressStyle(
  constraints: constraints ?? this.constraints,
  trackDecoration: trackDecoration ?? this.trackDecoration,
  fillDecoration: fillDecoration ?? this.fillDecoration,
  motion: motion != null ? motion(this.motion) : this.motion,
);