onPageChanged property Null safety

PdfPageChangedCallback? onPageChanged

Called when the page changes in SfPdfViewer.

Called in the following scenarios where the page changes

  1. When moved using touch scroll or scroll head.
  2. When page navigation is performed programmatically using jumpToPage method.
  3. When scrolling is performed programmatically using jumpTo method.
  4. When bookmark navigation is performed programmatically using jumpToBookmark method.

The oldPageNumber, newPageNumber, isFirstPage and isLastPage values in the PdfPageChangedDetails will be updated when the page changes.

See also: PdfPageChangedDetails.


final PdfPageChangedCallback? onPageChanged;