goToMatchOfIndex method

Future<int> goToMatchOfIndex(
  1. int index
)

Go to the match of the given index.

Implementation

Future<int> goToMatchOfIndex(int index) async {
  if (index < 0 || index >= _matches.length) return -1;
  _currentIndex = index;
  await goToMatch(_matches[index]);
  return index;
}