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
jumpToPage
method. - When scrolling is performed programmatically using
jumpTo
method. - 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.
Implementation
final PdfPageChangedCallback? onPageChanged;