overflowMode property

LegendItemOverflowMode overflowMode
final

The legend items can be scrolled, wrapped, or left as it is when it exceeds the available size.

Defaults to LegendItemOverflowMode.scroll

Also refer LegendItemOverflowMode

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           legend: Legend(
              isVisible: true,
              overflowMode: LegendOverflowMode.wrap)
       ));
}

Implementation

final LegendItemOverflowMode overflowMode