fitToPagesWide property
Represents the width of the pages the worksheet will be scaled.
final Workbook workbook = Workbook();
final Worksheet sheet = workbook.worksheets[0];
sheet.getRangeByName('A1:M40').text = 'Hello';
sheet.pageSetup.fitToPagesWide = 2;
final List<int> bytes = workbook.saveAsStream();
saveAsExcel(bytes, 'fitToPagesWide.xlsx');
workbook.dispose();
Implementation
late int fitToPagesWide;