copyWith method
CircularProgress
copyWith({
- double? progress,
- int? progressReserve,
- ProgressType? progressType,
- Color? foreground,
- Color? background,
- Color? circularBackground,
- bool? isProgressOpacityAnim,
- TextStyle? textStyle,
- String? prefix,
- TextStyle? prefixStyle,
- String? suffix,
- TextStyle? suffixStyle,
- double? size,
- BorderRadius? borderRadius,
- double? radius,
- double? ratio,
- bool? isArrow,
- bool? reverse,
- StrokeCap? strokeCap,
- double? startAngle,
- double? sweepAngle,
- BorderSide? borderSide,
- Gradient? circularBackgroundGradient,
- Gradient? foregroundGradient,
- Gradient? backgroundGradient,
- List<
BoxShadow> ? shadows,
Implementation
CircularProgress copyWith(
{double? progress,
int? progressReserve,
ProgressType? progressType,
Color? foreground,
Color? background,
Color? circularBackground,
bool? isProgressOpacityAnim,
TextStyle? textStyle,
String? prefix,
TextStyle? prefixStyle,
String? suffix,
TextStyle? suffixStyle,
double? size,
BorderRadius? borderRadius,
double? radius,
double? ratio,
bool? isArrow,
bool? reverse,
StrokeCap? strokeCap,
double? startAngle,
double? sweepAngle,
BorderSide? borderSide,
Gradient? circularBackgroundGradient,
Gradient? foregroundGradient,
Gradient? backgroundGradient,
List<BoxShadow>? shadows}){
return CircularProgress(
progress: progress ?? this.progress,
progressReserve: progressReserve ?? this.progressReserve,
progressType: progressType ??this.progressType,
foreground: foreground ??this.foreground,
background: background ??this.background,
circularBackground: circularBackground ?? this.circularBackground,
isProgressOpacityAnim: isProgressOpacityAnim ?? this.isProgressOpacityAnim,
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,
radius: radius ?? this.radius,
ratio: ratio ?? this.ratio,
isArrow: isArrow ?? this.isArrow,
reverse: reverse ?? this.reverse,
strokeCap: strokeCap ?? this.strokeCap,
startAngle: startAngle ?? this.startAngle,
sweepAngle: sweepAngle ?? this.sweepAngle,
borderSide: borderSide?? this.borderSide,
circularBackgroundGradient: circularBackgroundGradient ?? this.circularBackgroundGradient,
foregroundGradient: foregroundGradient ??this.foregroundGradient,
backgroundGradient: backgroundGradient ?? this.backgroundGradient,
shadows: shadows ??this.shadows,
);
}