copyWith method

SfChartThemeData copyWith({
  1. Brightness? brightness,
  2. Color? axisLabelColor,
  3. Color? axisLineColor,
  4. Color? axisTitleColor,
  5. Color? backgroundColor,
  6. Color? titleTextColor,
  7. Color? crosshairBackgroundColor,
  8. Color? crosshairLabelColor,
  9. Color? crosshairLineColor,
  10. Color? legendBackgroundColor,
  11. Color? legendTextColor,
  12. Color? legendTitleColor,
  13. Color? majorGridLineColor,
  14. Color? majorTickLineColor,
  15. Color? minorGridLineColor,
  16. Color? minorTickLineColor,
  17. Color? plotAreaBackgroundColor,
  18. Color? plotAreaBorderColor,
  19. Color? selectionRectColor,
  20. Color? selectionRectBorderColor,
  21. Color? selectionTooltipConnectorLineColor,
  22. Color? titleBackgroundColor,
  23. Color? tooltipColor,
  24. Color? tooltipSeparatorColor,
  25. Color? tooltipLabelColor,
  26. 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);
}