zoomByRect method
Zooms the chart for a given rectangle value.
Here, you can pass the rectangle with the left, right, top, and bottom values, using which the selection zooming will be performed.
Implementation
void zoomByRect(Rect rect) {
_chartState!._canSetRangeController = true;
final SfCartesianChartState chartState = _chartState!;
chartState._zoomPanBehaviorRenderer._doSelectionZooming(rect);
}