copyWith method

CartesianCanvasTheme copyWith({
  1. Color? background,
  2. Color? axisColor,
  3. double? axisWidth,
  4. Color? gridColor,
  5. double? gridWidth,
  6. Color? labelColor,
  7. double? labelFontSize,
  8. Color? originDotColor,
  9. Color? tooltipBackground,
  10. Color? tooltipTextColor,
})

Implementation

CartesianCanvasTheme copyWith({
  Color? background,
  Color? axisColor,
  double? axisWidth,
  Color? gridColor,
  double? gridWidth,
  Color? labelColor,
  double? labelFontSize,
  Color? originDotColor,
  Color? tooltipBackground,
  Color? tooltipTextColor,
}) {
  return CartesianCanvasTheme(
    background: background ?? this.background,
    axisColor: axisColor ?? this.axisColor,
    axisWidth: axisWidth ?? this.axisWidth,
    gridColor: gridColor ?? this.gridColor,
    gridWidth: gridWidth ?? this.gridWidth,
    labelColor: labelColor ?? this.labelColor,
    labelFontSize: labelFontSize ?? this.labelFontSize,
    originDotColor: originDotColor ?? this.originDotColor,
    tooltipBackground: tooltipBackground ?? this.tooltipBackground,
    tooltipTextColor: tooltipTextColor ?? this.tooltipTextColor,
  );
}