legendIconType property Null safety

LegendIconType legendIconType

Shape of the legend icon.

Any shape in the LegendIconType can be applied to this property. By default, icon will be rendered based on the type of the series.

Defaults to LegendIconType.seriesType.

Also refer LegendIconType.

Widget build(BuildContext context) {
   return Container(
       child: SfCircularChart(
          series: <PieSeries<ChartData, String>>[
               PieSeries<ChartData, String>(
                 legendIconType: LegendIconType.diamond,


final LegendIconType legendIconType;