add abstract method
Adds a new named range to the named range collection.
final Workbook workbook = Workbook();
final Worksheet sheet1 = workbook.worksheets[0];
worksheet.getRangeByName('A1:D4').setText('Hello');
final Name nameRange = workbook.names.add('NamedRange');
nameRange.refersToRange = worksheet.getRangeByName('A1:C1');
final List<int> bytes = workbook.saveAsStream();
saveAsExcel(bytes, 'AddNamedRange.xlsx');
workbook.dispose();
Implementation
Name add(String name, [Range? range]);