row method
Fetches specified row.
Expands current sheet's size if requested range is out of sheet's bounds.
row - index of a requested row, rows start at index 1
fromColumn
- optional (defaults to 1), index of a column that requested row
starts from (values before fromColumn
will be skipped),
columns start at index 1 (column A)
length
- optional (defaults to -1), the length of a requested row
if length is -1
, all values starting from fromColumn
will be returned
Returns row as Future List of String.
Throws GSheetsException.
Implementation
Future<List<String>> row(
int row, {
int fromColumn = 1,
int length = -1,
}) async {
checkIndex('row', row);
checkIndex('fromColumn', fromColumn);
final range = await _ws._rowRange(row, fromColumn, length);
return _ws._get(range, dimenRows);
}