copyWith method
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,
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,
);
}