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 matrix = Matrix(
  rowCount: 3,
  columnCount: 3,
);

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

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

Implementation

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