copyWith method

CircularProgress copyWith({
  1. double? progress,
  2. int? progressReserve,
  3. ProgressType? progressType,
  4. Color? foreground,
  5. Color? background,
  6. Color? circularBackground,
  7. bool? isProgressOpacityAnim,
  8. TextStyle? textStyle,
  9. String? prefix,
  10. TextStyle? prefixStyle,
  11. String? suffix,
  12. TextStyle? suffixStyle,
  13. double? size,
  14. BorderRadius? borderRadius,
  15. double? radius,
  16. double? ratio,
  17. bool? isArrow,
  18. bool? reverse,
  19. StrokeCap? strokeCap,
  20. double? startAngle,
  21. double? sweepAngle,
  22. BorderSide? borderSide,
  23. Gradient? circularBackgroundGradient,
  24. Gradient? foregroundGradient,
  25. Gradient? backgroundGradient,
  26. 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,
  );
}