headerMargin property

double headerMargin
getter/setter pair

Represents the size of the header margin, in inches

final Workbook workbook = Workbook();
final Worksheet sheet = workbook.worksheets[0];
sheet.getRangeByName('A1:M20').text = 'Hello';
sheet.pageSetup.topMargin = 1;
sheet.pageSetup.leftMargin = 1;
sheet.pageSetup.rightMargin = 1;
sheet.pageSetup.bottomMargin = 1;
sheet.pageSetup.footerMargin = 1;
Sets the value of the header margin
sheet.pageSetup.headerMargin = 1;
final List<int> bytes = workbook.saveAsStream();
saveAsExcel(bytes, 'headerMargin.xlsx');
workbook.dispose();

Implementation

late double headerMargin;