enablePinching property

bool enablePinching
final

Enables or disables the pinch zooming.

Pinching can be performed by moving two fingers over the chart. You can zoom the chart through pinch gesture in touch enabled devices.

Defaults to false.

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

Implementation

final bool enablePinching;