isCenterVertically property
Indicates whether to center the sheet content vertically when it is printed.
final Workbook workbook = Workbook();
final Worksheet sheet = workbook.worksheets[0];
sheet.getRangeByName('A1:D4').text = 'Hello';
sheet.pageSetup.isCenterVertically = true;
final List<int> bytes = workbook.saveAsStream();
saveAsExcel(bytes, 'isCenterVertically.xlsx');
workbook.dispose();
Implementation
late bool isCenterVertically;