copyWith method
SfChartThemeData
copyWith({
- Brightness? brightness,
- Color? axisLabelColor,
- Color? axisLineColor,
- Color? axisTitleColor,
- Color? backgroundColor,
- Color? titleTextColor,
- Color? crosshairBackgroundColor,
- Color? crosshairLabelColor,
- Color? crosshairLineColor,
- Color? legendBackgroundColor,
- Color? legendTextColor,
- Color? legendTitleColor,
- Color? majorGridLineColor,
- Color? majorTickLineColor,
- Color? minorGridLineColor,
- Color? minorTickLineColor,
- Color? plotAreaBackgroundColor,
- Color? plotAreaBorderColor,
- Color? selectionRectColor,
- Color? selectionRectBorderColor,
- Color? selectionTooltipConnectorLineColor,
- Color? titleBackgroundColor,
- Color? tooltipColor,
- Color? tooltipSeparatorColor,
- Color? tooltipLabelColor,
- Color? waterfallConnectorLineColor,
Creates a copy of this chart theme data object with the matching fields replaced with the non-null parameter values.
Implementation
SfChartThemeData copyWith(
{Brightness? brightness,
Color? axisLabelColor,
Color? axisLineColor,
Color? axisTitleColor,
Color? backgroundColor,
Color? titleTextColor,
Color? crosshairBackgroundColor,
Color? crosshairLabelColor,
Color? crosshairLineColor,
Color? legendBackgroundColor,
Color? legendTextColor,
Color? legendTitleColor,
Color? majorGridLineColor,
Color? majorTickLineColor,
Color? minorGridLineColor,
Color? minorTickLineColor,
Color? plotAreaBackgroundColor,
Color? plotAreaBorderColor,
Color? selectionRectColor,
Color? selectionRectBorderColor,
Color? selectionTooltipConnectorLineColor,
Color? titleBackgroundColor,
Color? tooltipColor,
Color? tooltipSeparatorColor,
Color? tooltipLabelColor,
Color? waterfallConnectorLineColor}) {
return SfChartThemeData.raw(
brightness: brightness ?? this.brightness,
axisLabelColor: axisLabelColor ?? this.axisLabelColor,
axisLineColor: axisLineColor ?? this.axisLineColor,
axisTitleColor: axisTitleColor ?? this.axisTitleColor,
backgroundColor: backgroundColor ?? this.backgroundColor,
titleTextColor: titleTextColor ?? this.titleTextColor,
crosshairBackgroundColor:
crosshairBackgroundColor ?? this.crosshairBackgroundColor,
crosshairLabelColor: crosshairLabelColor ?? this.crosshairLabelColor,
crosshairLineColor: crosshairLineColor ?? this.crosshairLineColor,
legendBackgroundColor:
legendBackgroundColor ?? this.legendBackgroundColor,
legendTextColor: legendTextColor ?? this.legendTextColor,
legendTitleColor: legendTitleColor ?? this.legendTitleColor,
majorGridLineColor: majorGridLineColor ?? this.majorGridLineColor,
majorTickLineColor: majorTickLineColor ?? this.majorTickLineColor,
minorGridLineColor: minorGridLineColor ?? this.minorGridLineColor,
minorTickLineColor: minorTickLineColor ?? this.minorTickLineColor,
plotAreaBackgroundColor:
plotAreaBackgroundColor ?? this.plotAreaBackgroundColor,
plotAreaBorderColor:
plotAreaBorderColor ?? this.plotAreaBackgroundColor,
selectionRectColor: selectionRectColor ?? this.selectionRectColor,
selectionRectBorderColor:
selectionRectBorderColor ?? this.selectionRectBorderColor,
selectionTooltipConnectorLineColor:
selectionTooltipConnectorLineColor ??
this.selectionTooltipConnectorLineColor,
titleBackgroundColor: titleBackgroundColor ?? this.titleBackgroundColor,
tooltipColor: tooltipColor ?? this.tooltipColor,
tooltipSeparatorColor:
tooltipSeparatorColor ?? this.tooltipSeparatorColor,
tooltipLabelColor: tooltipLabelColor ?? this.tooltipLabelColor,
waterfallConnectorLineColor:
waterfallConnectorLineColor ?? this.waterfallConnectorLineColor);
}