worksheets property
WorksheetCollection
get
worksheets
Represents the worksheet collection.
Workbook workbook = new Workbook();
Worksheet sheet = workbook.worksheets[0];
List<int> bytes = workbook.saveAsStream();
File('Worksheets.xlsx').writeAsBytes(bytes);
workbook.dispose();
Implementation
WorksheetCollection get worksheets {
_worksheets ??= WorksheetCollection(this);
return _worksheets!;
}