clearColumn method

Future<bool> clearColumn(
  1. int column, {
  2. int fromRow = 1,
  3. int length = -1,
  4. int count = 1,
})

Clears specified column.

column - index of a column to clear, columns start at index 1 (column A)

fromRow - optional (defaults to 1), index of a row that the column will be cleared from (values before fromRow will remain uncleared), rows start at index 1

count - number of columns to clear

length - optional (defaults to -1), number of cells to clear in the column

Returns Future true in case of success.

Throws GSheetsException.

Implementation

Future<bool> clearColumn(
  int column, {
  int fromRow = 1,
  int length = -1,
  int count = 1,
}) async {
  checkIndex('column', column);
  checkIndex('fromRow', fromRow);
  checkIndex('count', count);
  return _clear(await _allColumnsRange(column, fromRow, length, count));
}