onLegendItemRender property

FunnelLegendRenderCallback? onLegendItemRender
final

Occurs while legend is rendered.

Here, you can get the legend's text, shape, series index, and point index case of circular series.

Widget build(BuildContext context) {
   return Container(
       child: SfFunnelChart(
           legend: Legend(isVisible: true),
           onLegendItemRender: (LegendRendererArgs args) => legend(args),
       ));
}
void legend(LegendRendererArgs args) {
  args.legendIconType = LegendIconType.diamond;
}

Implementation

final FunnelLegendRenderCallback? onLegendItemRender;