moveLeft method

void moveLeft()

Moves focus left by one cell with wrapping.

At the start of a row, wraps to the end of the previous row. At item 0, wraps to the last item.

Implementation

void moveLeft() {
  if (_itemCount == 0) return;
  _focusedIndex = _focusedIndex == 0 ? _itemCount - 1 : _focusedIndex - 1;
}