ensure method
Implementation
void ensure(int length) {
if (length <= _maxCols) {
return;
}
final nextLength = _nextLength(length);
final newCells = List.filled(nextLength * _cellSize, 0);
newCells.setAll(0, _cells);
_cells = newCells;
_maxCols = nextLength;
}