onPageChanged property
Called when the page changes in SfPdfViewer.
Called in the following scenarios where the page changes
- When moved using touch scroll or scroll head.
- When page navigation is performed programmatically using
jumpToPagemethod. - When scrolling is performed programmatically using
jumpTomethod. - When bookmark navigation is performed programmatically using
jumpToBookmarkmethod.
The oldPageNumber, newPageNumber, isFirstPage and isLastPage
values in the PdfPageChangedDetails will be updated when the page changes.
See also: PdfPageChangedDetails.
Implementation
final PdfPageChangedCallback? onPageChanged;