previous method

void previous()

Moves to the previous match.

Implementation

void previous() {
  if (_matches.isEmpty) return;
  _currentMatchIndex =
      (_currentMatchIndex - 1 + _matches.length) % _matches.length;
  _scrollToCurrentMatch();
  _updateHighlights();
}