put method

void put(
  1. int x,
  2. int y,
  3. MatrixCell? item
)

Implementation

void put(int x, int y, MatrixCell? item) {
  if (this.height() <= y) {
    this.extendHeight(y + 1);
  }
  if (this.width() <= x) {
    this.extendWidth(x + 1);
  }
  this.s[y][x] = item;
}