copyWith method

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