copyWith method
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);
}