PdfPageChangedDetails constructor Null safety

PdfPageChangedDetails(
  1. int newPage,
  2. int oldPage,
  3. bool isFirst,
  4. bool isLast
)

Creates details for SfPdfViewer.onPageChanged callback.

Implementation

PdfPageChangedDetails(int newPage, int oldPage, bool isFirst, bool isLast) {
  _newPageNumber = newPage;
  _oldPageNumber = oldPage;
  _isFirstPage = isFirst;
  _isLastPage = isLast;
}