showHeadings property

bool showHeadings
getter/setter pair

Indicates whether to print row and column heading in the worksheet.

final Workbook workbook = Workbook();
final Worksheet sheet = workbook.worksheets[0];
sheet.getRangeByName('A1:D4').text = 'Headings';
sheet.pageSetup.showHeadings = true;
final List<int> bytes = workbook.saveAsStream();
saveAsExcel(bytes, 'showHeadings.xlsx');
workbook.dispose();

Implementation

late bool showHeadings;