copyWith method
ChartTheme
copyWith({
- ChartPalette? palette,
- ChartTypography? typography,
- ChartSpacing? spacing,
- Color? backgroundColor,
- Color? gridColor,
- Color? axisColor,
- Color? axisLabelColor,
- Color? titleColor,
- Color? legendTextColor,
- Color? tooltipBackgroundColor,
- Color? tooltipTextColor,
- Color? tooltipBorderColor,
- Color? crosshairColor,
Create a copy with overridden values.
Implementation
ChartTheme copyWith({
ChartPalette? palette,
ChartTypography? typography,
ChartSpacing? spacing,
Color? backgroundColor,
Color? gridColor,
Color? axisColor,
Color? axisLabelColor,
Color? titleColor,
Color? legendTextColor,
Color? tooltipBackgroundColor,
Color? tooltipTextColor,
Color? tooltipBorderColor,
Color? crosshairColor,
}) => ChartTheme(
palette: palette ?? this.palette,
typography: typography ?? this.typography,
spacing: spacing ?? this.spacing,
backgroundColor: backgroundColor ?? this.backgroundColor,
gridColor: gridColor ?? this.gridColor,
axisColor: axisColor ?? this.axisColor,
axisLabelColor: axisLabelColor ?? this.axisLabelColor,
titleColor: titleColor ?? this.titleColor,
legendTextColor: legendTextColor ?? this.legendTextColor,
tooltipBackgroundColor:
tooltipBackgroundColor ?? this.tooltipBackgroundColor,
tooltipTextColor: tooltipTextColor ?? this.tooltipTextColor,
tooltipBorderColor: tooltipBorderColor ?? this.tooltipBorderColor,
crosshairColor: crosshairColor ?? this.crosshairColor,
);