isResponsive property
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