getIndex static method

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

Implementation

static int getIndex(int row, int col) => col * 9 + row;