backgroundColor property Null safety

Color? backgroundColor
final

Background color of the chart title.

Defaults to Colors.transparent.

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

Implementation

final Color? backgroundColor;