writeCell method

void writeCell(
  1. int r,
  2. int c,
  3. String value
)

Directly write a cell (used by clear, cut, paste) as one history step.

Implementation

void writeCell(int r, int c, String value) {
  final next = _clone();
  next[r] = {...next[r], columns[c].key: value};
  _apply(next);
}