getMatchesRangeForPage method
Get the matches range for the given page number.
Implementation
({int start, int end})? getMatchesRangeForPage(int pageNumber) {
if (_matchesPageStartIndices.length < pageNumber) return null;
final start = _matchesPageStartIndices[pageNumber - 1];
final end = _matchesPageStartIndices.length > pageNumber
? _matchesPageStartIndices[pageNumber]
: _matches.length;
return (start: start, end: end);
}