goToPage method
Future<void>
goToPage({
- required int pageNumber,
- PdfPageAnchor? anchor,
- Duration duration = const Duration(milliseconds: 200),
Go to the specified page.
anchor
specifies how the page is positioned if the page is larger than the view.
Implementation
Future<void> goToPage({
required int pageNumber,
PdfPageAnchor? anchor,
Duration duration = const Duration(milliseconds: 200),
}) =>
_state._goToPage(
pageNumber: pageNumber, anchor: anchor, duration: duration);