backgroundColor property Null safety

Color? backgroundColor
final

Background color of the chart.

Defaults to Colors.transparent.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           backgroundColor: Colors.blue
       ));
}

Implementation

final Color? backgroundColor;