title property Null safety

LegendTitle title
final

Customizes the legend title.

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

Implementation

final LegendTitle title;