backgroundColor property

Color? backgroundColor
final

Background color of the chart title.

Defaults to null.

Widget build(BuildContext context) {
  return SfCartesianChart(
    title: ChartTitle(
      text: 'Chart Title',
      backgroundColor: Colors.white
    )
  );
}

Implementation

final Color? backgroundColor;