next method

void next()

Moves to the next match.

Implementation

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