copyWith method
- @useResult
- BoxConstraints? constraints,
- BoxDecorationDelta? trackDecoration,
- BoxDecorationDelta? fillDecoration,
- FProgressMotionDelta? motion,
Returns a copy of this FProgressStyle with the given properties replaced.
See customizing widget styles.
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,
BoxDecorationDelta? trackDecoration,
BoxDecorationDelta? fillDecoration,
FProgressMotionDelta? motion,
}) => .new(
constraints: constraints ?? this.constraints,
trackDecoration: trackDecoration?.call(this.trackDecoration) ?? this.trackDecoration,
fillDecoration: fillDecoration?.call(this.fillDecoration) ?? this.fillDecoration,
motion: motion?.call(this.motion) ?? this.motion,
);