deleteColumn method

Future<bool> deleteColumn(
  1. int column, {
  2. int count = 1,
})

Deletes columns from Worksheet.

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

count - optional (defaults to 1), the number of columns to delete starting from column

Returns Future true in case of success.

Throws GSheetsException.

Implementation

Future<bool> deleteColumn(int column, {int count = 1}) async {
  checkIndex('column', column);
  final isDeleted = await _deleteDimension(dimenColumns, column, count);
  if (isDeleted) {
    _columnCount = _columnCount - count;
  }
  return isDeleted;
}