SfChartThemeData.raw constructor

SfChartThemeData.raw({
  1. Brightness? brightness,
  2. Color? backgroundColor,
  3. Color? axisLabelColor,
  4. Color? axisTitleColor,
  5. Color? axisLineColor,
  6. Color? majorGridLineColor,
  7. Color? minorGridLineColor,
  8. Color? majorTickLineColor,
  9. Color? minorTickLineColor,
  10. Color? titleTextColor,
  11. Color? titleBackgroundColor,
  12. Color? legendTextColor,
  13. Color? legendTitleColor,
  14. Color? legendBackgroundColor,
  15. Color? plotAreaBackgroundColor,
  16. Color? plotAreaBorderColor,
  17. Color? crosshairLineColor,
  18. Color? crosshairBackgroundColor,
  19. Color? crosshairLabelColor,
  20. Color? tooltipColor,
  21. Color? tooltipLabelColor,
  22. Color? tooltipSeparatorColor,
  23. Color? selectionRectColor,
  24. Color? selectionRectBorderColor,
  25. Color? selectionTooltipConnectorLineColor,
  26. Color? waterfallConnectorLineColor,
  27. TextStyle? titleTextStyle,
  28. TextStyle? axisTitleTextStyle,
  29. TextStyle? axisLabelTextStyle,
  30. TextStyle? axisMultiLevelLabelTextStyle,
  31. TextStyle? plotBandLabelTextStyle,
  32. TextStyle? legendTitleTextStyle,
  33. TextStyle? legendTextStyle,
  34. TextStyle? dataLabelTextStyle,
  35. TextStyle? tooltipTextStyle,
  36. TextStyle? trackballTextStyle,
  37. TextStyle? crosshairTextStyle,
  38. TextStyle? selectionZoomingTooltipTextStyle,
})

Create a SfChartThemeData given a set of exact values. All the values must be specified.

This will rarely be used directly. It is used by lerp to create intermediate themes based on two themes created with the SfChartThemeData constructor.

Implementation

factory SfChartThemeData.raw({
  Brightness? brightness,
  Color? backgroundColor,
  Color? axisLabelColor,
  Color? axisTitleColor,
  Color? axisLineColor,
  Color? majorGridLineColor,
  Color? minorGridLineColor,
  Color? majorTickLineColor,
  Color? minorTickLineColor,
  Color? titleTextColor,
  Color? titleBackgroundColor,
  Color? legendTextColor,
  Color? legendTitleColor,
  Color? legendBackgroundColor,
  Color? plotAreaBackgroundColor,
  Color? plotAreaBorderColor,
  Color? crosshairLineColor,
  Color? crosshairBackgroundColor,
  Color? crosshairLabelColor,
  Color? tooltipColor,
  Color? tooltipLabelColor,
  Color? tooltipSeparatorColor,
  Color? selectionRectColor,
  Color? selectionRectBorderColor,
  Color? selectionTooltipConnectorLineColor,
  Color? waterfallConnectorLineColor,
  TextStyle? titleTextStyle,
  TextStyle? axisTitleTextStyle,
  TextStyle? axisLabelTextStyle,
  TextStyle? axisMultiLevelLabelTextStyle,
  TextStyle? plotBandLabelTextStyle,
  TextStyle? legendTitleTextStyle,
  TextStyle? legendTextStyle,
  TextStyle? dataLabelTextStyle,
  TextStyle? tooltipTextStyle,
  TextStyle? trackballTextStyle,
  TextStyle? crosshairTextStyle,
  TextStyle? selectionZoomingTooltipTextStyle,
}) {
  brightness = brightness ?? Brightness.light;

  return SfChartThemeData(
    axisLabelColor: axisLabelColor,
    axisLineColor: axisLineColor,
    axisTitleColor: axisTitleColor,
    backgroundColor: backgroundColor,
    titleTextColor: titleTextColor,
    crosshairBackgroundColor: crosshairBackgroundColor,
    crosshairLabelColor: crosshairLabelColor,
    crosshairLineColor: crosshairLineColor,
    legendBackgroundColor: legendBackgroundColor,
    legendTextColor: legendTextColor,
    legendTitleColor: legendTitleColor,
    majorGridLineColor: majorGridLineColor,
    majorTickLineColor: majorTickLineColor,
    minorGridLineColor: minorGridLineColor,
    minorTickLineColor: minorTickLineColor,
    plotAreaBackgroundColor: plotAreaBackgroundColor,
    plotAreaBorderColor: plotAreaBorderColor,
    selectionRectColor: selectionRectColor,
    selectionRectBorderColor: selectionRectBorderColor,
    selectionTooltipConnectorLineColor: selectionTooltipConnectorLineColor,
    titleBackgroundColor: titleBackgroundColor,
    tooltipColor: tooltipColor,
    tooltipSeparatorColor: tooltipSeparatorColor,
    tooltipLabelColor: tooltipLabelColor,
    waterfallConnectorLineColor: waterfallConnectorLineColor,
    titleTextStyle: titleTextStyle,
    axisTitleTextStyle: axisTitleTextStyle,
    axisLabelTextStyle: axisLabelTextStyle,
    axisMultiLevelLabelTextStyle: axisMultiLevelLabelTextStyle,
    plotBandLabelTextStyle: plotBandLabelTextStyle,
    legendTitleTextStyle: legendTitleTextStyle,
    legendTextStyle: legendTextStyle,
    dataLabelTextStyle: dataLabelTextStyle,
    tooltipTextStyle: tooltipTextStyle,
    trackballTextStyle: trackballTextStyle,
    crosshairTextStyle: crosshairTextStyle,
    selectionZoomingTooltipTextStyle: selectionZoomingTooltipTextStyle,
  );
}