deleteRowAt method
Implementation
void deleteRowAt(int index) {
if (index < 0 || index >= _rows.length) return;
if (_rows.length <= 1) {
_sel = const CellRef(0, 0);
_apply([blankRow()]);
return;
}
final next = _clone()..removeAt(index);
_sel = CellRef(_sel.row.clamp(0, next.length - 1), _sel.col);
_apply(next);
}