indexAt method

int indexAt(
  1. int row,
  2. int col
)

Index at a specific row and column (may exceed itemCount).

Implementation

int indexAt(int row, int col) => row * columns + col;