description property

String description
getter/setter pair

Represents the comments for the named range.

final Workbook workbook = Workbook();
final Worksheet worksheet = workbook.worksheets[0];
worksheet.getRangeByName('A1:D4').setText('Hello');
final Range range1 = worksheet.getRangeByName('A1:C1');
final Range range2 = worksheet.getRangeByName('A2:C2');
final Name name1 = workbook.names.add('Title', range1);
final Name name2 = worksheet.names.add('Body', range2);
name1.description = 'It's title';
name2.description = 'It's body';
final List<int> bytes = workbook.saveAsStream();
saveAsExcel(bytes, 'description.xlsx');
workbook.dispose();

Implementation

late String description;