copyWith method
RectangleProgress
copyWith({
- double? progress,
- int? progressReserve,
- ProgressType? progressType,
- Color? foreground,
- Color? background,
- bool? isProgressOpacityAnim,
- String? indeterminateText,
- double? indicatorRatio,
- TextStyle? textStyle,
- String? prefix,
- TextStyle? prefixStyle,
- String? suffix,
- TextStyle? suffixStyle,
- double? size,
- double? startRatio,
- BorderRadius? borderRadius,
- bool? reverse,
- StrokeCap? strokeCap,
- double? width,
- double? height,
- Color? progressBackground,
- Gradient? progressBackgroundGradient,
- Gradient? foregroundGradient,
- Gradient? backgroundGradient,
- BorderSide? borderSide,
- List<
BoxShadow> ? shadows,
Implementation
RectangleProgress copyWith(
{double? progress,
int? progressReserve,
ProgressType? progressType,
Color? foreground,
Color? background,
bool? isProgressOpacityAnim,
String? indeterminateText,
double? indicatorRatio,
TextStyle? textStyle,
String? prefix,
TextStyle? prefixStyle,
String? suffix,
TextStyle? suffixStyle,
double? size,
double? startRatio,
BorderRadius? borderRadius,
bool? reverse,
StrokeCap? strokeCap,
double? width,
double? height,
Color? progressBackground,
Gradient? progressBackgroundGradient,
Gradient? foregroundGradient,
Gradient? backgroundGradient,
BorderSide? borderSide,
List<BoxShadow>? shadows}) {
return RectangleProgress(
progress: progress ?? this.progress,
progressReserve: progressReserve ?? this.progressReserve,
progressType: progressType ?? this.progressType,
foreground: foreground ?? this.foreground,
background: background ?? this.background,
isProgressOpacityAnim:
isProgressOpacityAnim ?? this.isProgressOpacityAnim,
indeterminateText: indeterminateText ?? this.indeterminateText,
indicatorRatio: indicatorRatio ?? this.indicatorRatio,
textStyle: textStyle ?? this.textStyle,
prefix: prefix ?? this.prefix,
prefixStyle: prefixStyle ?? this.prefixStyle,
suffix: suffix ?? this.suffix,
suffixStyle: suffixStyle ?? this.suffixStyle,
size: size ?? this.size,
borderRadius: borderRadius ?? this.borderRadius,
width: width ?? this.width,
height: height ?? this.height,
reverse: reverse ?? this.reverse,
strokeCap: strokeCap ?? this.strokeCap,
borderSide: borderSide ?? this.borderSide,
progressBackground: progressBackground ?? this.progressBackground,
progressBackgroundGradient:
progressBackgroundGradient ?? this.progressBackgroundGradient,
foregroundGradient: foregroundGradient ?? this.foregroundGradient,
backgroundGradient: backgroundGradient ?? this.backgroundGradient,
shadows: shadows ?? this.shadows,
);
}