title property Null safety

LegendTitle title
final

Customizes the legend title.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           legend: Legend(
              isVisible: true,
              title: ChartTitle(
                   text: 'Countries'
           ))
       ));
}

Implementation

final LegendTitle title;