column method
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 (values 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 values starting from fromRow
will be returned
Returns column as Future List of String.
Throws GSheetsException.
Implementation
Future<List<String>> column(
int column, {
int fromRow = 1,
int length = -1,
}) async {
checkIndex('column', column);
checkIndex('fromRow', fromRow);
final range = await _ws._columnRange(column, fromRow, length);
return _ws._get(range, dimenColumns);
}