copyWith method
- @useResult
- BoxConstraints? constraints,
- BoxDecoration? backgroundDecoration,
- BoxDecoration? progressDecoration,
- Curve? curve,
inherited
Returns a copy of this FLinearProgressStyle with the given properties replaced.
Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.
Implementation
@useResult
FLinearProgressStyle copyWith({
BoxConstraints? constraints,
BoxDecoration? backgroundDecoration,
BoxDecoration? progressDecoration,
Curve? curve,
}) => FLinearProgressStyle(
constraints: constraints ?? this.constraints,
backgroundDecoration: backgroundDecoration ?? this.backgroundDecoration,
progressDecoration: progressDecoration ?? this.progressDecoration,
curve: curve ?? this.curve,
);