copyWith method
PolygonProgress
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,
- double? borderRadius,
- bool? reverse,
- StrokeCap? strokeCap,
- double? width,
- Color? progressBackground,
- Gradient? progressBackgroundGradient,
- Gradient? foregroundGradient,
- Gradient? backgroundGradient,
- BorderSide? borderSide,
- List<
BoxShadow> ? shadows,
Implementation
PolygonProgress 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,
double? borderRadius,
bool? reverse,
StrokeCap? strokeCap,
double? width,
Color? progressBackground,
Gradient? progressBackgroundGradient,
Gradient? foregroundGradient,
Gradient? backgroundGradient,
BorderSide? borderSide,
List<BoxShadow>? shadows}) {
return PolygonProgress(
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,
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,
);
}