enableMouseWheelZooming property Null safety

bool enableMouseWheelZooming

Enables or disables the mouseWheelZooming.

Mouse wheel zooming can be performed by rolling the mouse wheel up or down. The place where the cursor is hovering gets zoomed in or out according to the mouse wheel rolling up or down.

Defaults to false.

late ZoomPanBehavior zoomPanBehavior;

void initState() {
  zoomPanBehavior = ZoomPanBehavior(
    enableMouseWheelZooming: true

Widget build(BuildContext context) {
  return SfCartesianChart(
    zoomPanBehavior: zoomPanBehavior


final bool enableMouseWheelZooming;