onZoomLevelChanged property Null safety

PdfZoomLevelChangedCallback? onZoomLevelChanged
final

Called when the zoom level changes in SfPdfViewer.

Called in the following scenarios where the zoom level changes

  1. When pinch zoom is performed.
  2. When double tap zooming is performed.
  3. When zoomLevel property is changed.

The oldZoomLevel and newZoomLevel values in the PdfZoomDetails will be updated when the zoom level changes.

See also: PdfZoomDetails.

Implementation

final PdfZoomLevelChangedCallback? onZoomLevelChanged;