overflowMode property Null safety

LegendItemOverflowMode overflowMode
final

Overflow legend items.

The legend items can be placed in multiple rows or scroll can be enabled using the overflowMode property if size of the total legend items exceeds the available size. It can be scrolled, wrapped, or left.

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;