openGoToPageModal method
void
openGoToPageModal()
Implementation
void openGoToPageModal() {
if (!enableGoToPageAction) {
return;
}
goToPageInputText = currentPage > 0 ? '$currentPage' : '';
_changeDetectorRef.markForCheck();
Timer.run(() {
goToPageModal?.open();
Timer.run(() {
final input = html.document.getElementById('pdfGoToPageInput');
if (input is html.InputElement) {
input.focus();
input.select();
}
});
});
}