set method

  1. @nonVirtual
void set(
  1. int row,
  2. int col,
  3. T value
)

Sets the scalar at the provided row and col index to value. Throws a RangeError if row or col are outside of bounds.

Implementation

@nonVirtual
void set(int row, int col, T value) {
  RangeError.checkValidIndex(row, this, 'row', rowCount);
  RangeError.checkValidIndex(col, this, 'col', colCount);
  setUnchecked(row, col, value);
}