findPrevious method

void findPrevious()

Navigates to the previous search match.

Implementation

void findPrevious() {
  if (searchState.matches.isEmpty) return;
  final prevIndex = (searchState.currentMatchIndex -
          1 +
          searchState.matches.length) %
      searchState.matches.length;
  _navigateToMatch(prevIndex);
}