cursorDown method

void cursorDown()

Move cursor down.

Implementation

void cursorDown() {
  final maxIdx = _maxCursorIndex();
  _cursor++;
  if (_cursor <= maxIdx) return;
  if (!paginator.onLastPage) {
    paginator.nextPage();
    _cursor = 0;
    return;
  }
  _cursor = math.max(0, maxIdx);
  if (infiniteScrolling) {
    goToStart();
  }
}