enablePinching property

bool enablePinching
final

Enables or disables the pinch zooming. Pinching can be performed by moving two fingers over the chart.

Defaults to false

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          zoomPanBehavior: ZoomPanBehavior(enablePinchZooming: true),
       ));
}

Implementation

final bool enablePinching