isResponsive property

bool isResponsive
final

Toggles the visibility of the legend.

If the width or height of the legend is greater than the plot area bounds.

Defaults to false

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           legend: Legend(
              isVisible: true,
              isResponsive: true)
       ));
}

Implementation

final bool isResponsive;