copyWith method
- @useResult
- BoxConstraints? constraints,
- BoxDecoration? trackDecoration,
- BoxDecoration? fillDecoration,
- FProgressMotion motion(
- FProgressMotion motion
Returns a copy of this FProgressStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FProgressStyle.constraints - The linear progress's constraints.
- FProgressStyle.trackDecoration - The track's decoration.
- FProgressStyle.fillDecoration - The fill's decoration.
- FProgressStyle.motion - The motion-related properties for an indeterminate FProgress.
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,
);