copyWith method

RectangleProgress 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. BorderRadius? borderRadius,
  17. bool? reverse,
  18. StrokeCap? strokeCap,
  19. double? width,
  20. double? height,
  21. Color? progressBackground,
  22. Gradient? progressBackgroundGradient,
  23. Gradient? foregroundGradient,
  24. Gradient? backgroundGradient,
  25. BorderSide? borderSide,
  26. 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,
  );
}