saveSync method

List<int> saveSync()

Saves workbook.

Workbook workbook = new Workbook();
Worksheet sheet = workbook.worksheets[0];
List<int> bytes = workbook.saveSync();
File('ExcelSave.xlsx').writeAsBytes(bytes);
workbook.dispose();

Implementation

List<int> saveSync() {
  return saveAsStream();
}