SfSparkChartThemeData.raw constructor

SfSparkChartThemeData.raw({
  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,
})

Create a SfSparkChartThemeData 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 SfSparkChartThemeData constructor.

Implementation

factory SfSparkChartThemeData.raw({
  Brightness? brightness,
  Color? backgroundColor,
  Color? color,
  Color? axisLineColor,
  Color? markerFillColor,
  Color? dataLabelBackgroundColor,
  Color? tooltipColor,
  Color? trackballLineColor,
  Color? tooltipLabelColor,
  TextStyle? dataLabelTextStyle,
  TextStyle? trackballTextStyle,
}) {
  brightness = brightness ?? Brightness.light;

  return SfSparkChartThemeData(
    backgroundColor: backgroundColor,
    color: color,
    axisLineColor: axisLineColor,
    markerFillColor: markerFillColor,
    dataLabelBackgroundColor: dataLabelBackgroundColor,
    tooltipColor: tooltipColor,
    trackballLineColor: trackballLineColor,
    tooltipLabelColor: tooltipLabelColor,
    dataLabelTextStyle: dataLabelTextStyle,
    trackballTextStyle: trackballTextStyle,
  );
}