clearAllPages method

void clearAllPages(
  1. PdfViewerController pdfViewerController
)

Clears all highlights/underlines across all pages.

Implementation

void clearAllPages(PdfViewerController pdfViewerController) {
  _highlightHistory.clear();
  _highlightUndoStack.clear();
  pdfViewerController.removeAllAnnotations();
  setPage(0);
  notifyListeners();
}