rows property

RowCollection get rows

Gets/Sets a rows collections in the worksheet.

Workbook workbook = Workbook();
Worksheet sheet = workbook.worksheets[0];
Row row = sheet.rows.add();
row.height = 25;
List<int> bytes = workbook.saveAsStream();
File('ExcelRows.xlsx').writeAsBytes(bytes);
workbook.dispose();

Implementation

RowCollection get rows {
  _rows ??= RowCollection(this);
  return _rows!;
}