leftMargin property

double leftMargin
getter/setter pair

Represents the size of the left margin, in inches

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

Implementation

late double leftMargin;