zoomMode property Null safety

ZoomMode zoomMode

By default, both the x and y-axes in the chart can be zoomed.

It can be changed by setting value to this property.

Defaults to ZoomMode.xy.

Also refer ZoomMode.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          zoomPanBehavior: ZoomPanBehavior(enableSelectionZooming: true, zoomMode: ZoomMode.x),


final ZoomMode zoomMode;