width property

String? width
final

The width of the legend.

It takes percentage value from the overall chart width.

Defaults to null.

Widget build(BuildContext context) {
  return SfCartesianChart(
    legend: Legend(
      isVisible: true,
      width: '30%'
    )
  );
}

Implementation

final String? width;