put method

void put(
  1. T item, {
  2. required int colIndex,
  3. required int rowIndex,
})

Add item to a column/row position

Implementation

void put(T item, {required int colIndex, required int rowIndex}) {
  final row = _rows[rowIndex] ?? <int, T>{};
  row[colIndex] = item;
  _rows[rowIndex] = row;
}