copyWith method
- @useResult
- BoxDecoration? backgroundDecoration,
- BoxDecoration? progressDecoration,
- BoxConstraints? constraints,
- Duration? animationDuration,
- Curve? curve,
Returns a copy of this FProgressStyle with the given properties replaced.
Implementation
@useResult
FProgressStyle copyWith({
BoxDecoration? backgroundDecoration,
BoxDecoration? progressDecoration,
BoxConstraints? constraints,
Duration? animationDuration,
Curve? curve,
}) =>
FProgressStyle(
backgroundDecoration: backgroundDecoration ?? this.backgroundDecoration,
progressDecoration: progressDecoration ?? this.progressDecoration,
constraints: constraints ?? this.constraints,
animationDuration: animationDuration ?? this.animationDuration,
curve: curve ?? this.curve,
);