setSearchMatches method

void setSearchMatches(
  1. List<PdfSearchMatch> matches
)

Replaces the active search matches and notifies listeners.

Typically called by SearchView when new results arrive. The PageViewer will draw overlay highlights for matches on the current page.

Implementation

void setSearchMatches(List<PdfSearchMatch> matches) {
  _activeSearchMatches = List.unmodifiable(matches);
  notifyListeners();
}