copyWith method

SfSparkChartThemeData copyWith({
  1. Brightness? brightness,
  2. Color? backgroundColor,
  3. Color? color,
  4. Color? axisLineColor,
  5. Color? markerFillColor,
  6. Color? dataLabelBackgroundColor,
  7. Color? tooltipColor,
  8. Color? trackballLineColor,
  9. Color? tooltipLabelColor,
  10. TextStyle? dataLabelTextStyle,
  11. TextStyle? trackballTextStyle,
})

Creates a copy of this spark chart theme data object with the matching fields replaced with the non-null parameter values.

Implementation

SfSparkChartThemeData copyWith({
  Brightness? brightness,
  Color? backgroundColor,
  Color? color,
  Color? axisLineColor,
  Color? markerFillColor,
  Color? dataLabelBackgroundColor,
  Color? tooltipColor,
  Color? trackballLineColor,
  Color? tooltipLabelColor,
  TextStyle? dataLabelTextStyle,
  TextStyle? trackballTextStyle,
}) {
  return SfSparkChartThemeData.raw(
      brightness: brightness,
      backgroundColor: backgroundColor ?? this.backgroundColor,
      color: color ?? this.color,
      axisLineColor: axisLineColor ?? this.axisLineColor,
      markerFillColor: markerFillColor ?? this.markerFillColor,
      dataLabelBackgroundColor:
          dataLabelBackgroundColor ?? this.dataLabelBackgroundColor,
      tooltipColor: tooltipColor ?? this.tooltipColor,
      trackballLineColor: trackballLineColor ?? this.trackballLineColor,
      tooltipLabelColor: tooltipLabelColor ?? this.tooltipLabelColor,
      dataLabelTextStyle: dataLabelTextStyle ?? this.dataLabelTextStyle,
      trackballTextStyle: trackballTextStyle ?? this.trackballTextStyle);
}