copyWith method
CartesianCanvasTheme
copyWith(
{ - Color? background,
- Color? axisColor,
- double? axisWidth,
- Color? gridColor,
- double? gridWidth,
- Color? labelColor,
- double? labelFontSize,
- Color? originDotColor,
- Color? tooltipBackground,
- Color? tooltipTextColor,
})
Implementation
CartesianCanvasTheme copyWith({
Color? background,
Color? axisColor,
double? axisWidth,
Color? gridColor,
double? gridWidth,
Color? labelColor,
double? labelFontSize,
Color? originDotColor,
Color? tooltipBackground,
Color? tooltipTextColor,
}) {
return CartesianCanvasTheme(
background: background ?? this.background,
axisColor: axisColor ?? this.axisColor,
axisWidth: axisWidth ?? this.axisWidth,
gridColor: gridColor ?? this.gridColor,
gridWidth: gridWidth ?? this.gridWidth,
labelColor: labelColor ?? this.labelColor,
labelFontSize: labelFontSize ?? this.labelFontSize,
originDotColor: originDotColor ?? this.originDotColor,
tooltipBackground: tooltipBackground ?? this.tooltipBackground,
tooltipTextColor: tooltipTextColor ?? this.tooltipTextColor,
);
}