backgroundColor property

Color? backgroundColor
final

Background color of the chart title.

Defaults to Colors.transparent

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

Implementation

final Color? backgroundColor;