column method

Future<List<Cell>> column(
  1. int column, {
  2. int fromRow = 1,
  3. int length = -1,
})

Fetches specified column.

Expands current sheet's size if requested range is out of sheet's bounds.

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

fromRow - optional (defaults to 1), index of a row that requested column starts from (cells before fromRow will be skipped), rows start at index 1

length - optional (defaults to -1), the length of a requested column if length is -1, all cells starting from fromRow will be returned

Returns column as Future List of Cell.

Throws GSheetsException.

Implementation

Future<List<Cell>> column(
  int column, {
  int fromRow = 1,
  int length = -1,
}) async {
  final list = await _ws.values.column(
    column,
    fromRow: fromRow,
    length: length,
  );
  return _wrapColumn(list, column, fromRow);
}