isVisible property Null safety

bool? isVisible
final

Toggles the visibility of the legend.

Defaults to false.

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

Implementation

final bool? isVisible;