row method

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

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 (cells 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 cells starting from fromColumn will be returned

Returns row as Future List of Cell.

Throws GSheetsException.

Implementation

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