page property

String? get page

Page number

Implementation

String? get page {
  final int? num;
  if (_page != null) {
    num = pdfDocument.pdfPageList.pages.indexOf(_page!);
  } else if (dest != null) {
    num = pdfDocument.pdfPageList.pages.indexOf(dest!);
  } else {
    num = null;
  }

  return num == null ? null : (num + 1).toString();
}