copyWith method

CircularGaugeTheme copyWith({
  1. Color? backgroundColor,
  2. Color? borderColor,
  3. Color? titleColor,
  4. Color? valueColor,
  5. Color? unitColor,
  6. Color? tickColor,
  7. Color? majorTickColor,
  8. Color? labelColor,
  9. Color? needleColor,
  10. Color? centerDotColor,
  11. Color? arcColor,
  12. Color? progressColor,
  13. TextStyle? titleStyle,
  14. TextStyle? valueStyle,
  15. TextStyle? unitStyle,
  16. TextStyle? labelStyle,
  17. double? needleWidth,
  18. double? centerDotRadius,
  19. double? arcStrokeWidth,
  20. double? progressStrokeWidth,
  21. Gradient? backgroundGradient,
  22. Gradient? needleGradient,
  23. Gradient? progressGradient,
})

Implementation

CircularGaugeTheme copyWith({
  Color? backgroundColor,
  Color? borderColor,
  Color? titleColor,
  Color? valueColor,
  Color? unitColor,
  Color? tickColor,
  Color? majorTickColor,
  Color? labelColor,
  Color? needleColor,
  Color? centerDotColor,
  Color? arcColor,
  Color? progressColor,
  TextStyle? titleStyle,
  TextStyle? valueStyle,
  TextStyle? unitStyle,
  TextStyle? labelStyle,
  double? needleWidth,
  double? centerDotRadius,
  double? arcStrokeWidth,
  double? progressStrokeWidth,
  Gradient? backgroundGradient,
  Gradient? needleGradient,
  Gradient? progressGradient,
}) {
  return CircularGaugeTheme(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    borderColor: borderColor ?? this.borderColor,
    titleColor: titleColor ?? this.titleColor,
    valueColor: valueColor ?? this.valueColor,
    unitColor: unitColor ?? this.unitColor,
    tickColor: tickColor ?? this.tickColor,
    majorTickColor: majorTickColor ?? this.majorTickColor,
    labelColor: labelColor ?? this.labelColor,
    needleColor: needleColor ?? this.needleColor,
    centerDotColor: centerDotColor ?? this.centerDotColor,
    arcColor: arcColor ?? this.arcColor,
    progressColor: progressColor ?? this.progressColor,
    titleStyle: titleStyle ?? this.titleStyle,
    valueStyle: valueStyle ?? this.valueStyle,
    unitStyle: unitStyle ?? this.unitStyle,
    labelStyle: labelStyle ?? this.labelStyle,
    needleWidth: needleWidth ?? this.needleWidth,
    centerDotRadius: centerDotRadius ?? this.centerDotRadius,
    arcStrokeWidth: arcStrokeWidth ?? this.arcStrokeWidth,
    progressStrokeWidth: progressStrokeWidth ?? this.progressStrokeWidth,
    backgroundGradient: backgroundGradient ?? this.backgroundGradient,
    needleGradient: needleGradient ?? this.needleGradient,
    progressGradient: progressGradient ?? this.progressGradient,
  );
}