copyWith method
- @useResult
- BoxConstraints? constraints,
- BoxDecoration? trackDecoration,
- BoxDecoration? fillDecoration,
- FDeterminateProgressMotion motion(
- FDeterminateProgressMotion motion
Returns a copy of this FDeterminateProgressStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FDeterminateProgressStyle.constraints - The linear progress's constraints.
- FDeterminateProgressStyle.trackDecoration - The track's decoration.
- FDeterminateProgressStyle.fillDecoration - The fill's decoration.
- FDeterminateProgressStyle.motion - The motion-related properties for an indeterminate FDeterminateProgress.
Implementation
@useResult
FDeterminateProgressStyle copyWith({
BoxConstraints? constraints,
BoxDecoration? trackDecoration,
BoxDecoration? fillDecoration,
FDeterminateProgressMotion Function(FDeterminateProgressMotion motion)? motion,
}) => FDeterminateProgressStyle(
constraints: constraints ?? this.constraints,
trackDecoration: trackDecoration ?? this.trackDecoration,
fillDecoration: fillDecoration ?? this.fillDecoration,
motion: motion != null ? motion(this.motion) : this.motion,
);