itemAt method

T itemAt(
  1. int row,
  2. int col
)

Use this method to retrieve the element at a given position in the matrix. For example:

final value = myMatrix.itemAt(2, 1);

In the above example, you're accessing the value at position (3, 2).

Implementation

T itemAt(int row, int col) => this(row, col);