order property
Represents the order in which the worksheet to be printed.
final Workbook workbook = Workbook();
final Worksheet sheet = workbook.worksheets[0];
sheet.getRangeByName('A1:M40').text = 'Hello';
sheet.pageSetup.order = ExcelPageOrder.overThenDown;
final List<int> bytes = workbook.saveAsStream();
saveAsExcel(bytes, 'orientation.xlsx');
workbook.dispose();
Implementation
late ExcelPageOrder order;