goToNextMatch method
Go to the next match.
Implementation
Future<int> goToNextMatch() async {
if (_currentIndex == null) {
_currentIndex = 0;
return await goToMatchOfIndex(_currentIndex!);
}
if (_currentIndex! + 1 < _matches.length) {
_currentIndex = _currentIndex! + 1;
return await goToMatchOfIndex(_currentIndex!);
}
return -1;
}