contains abstract method
Checkes whether the named range collection contains a named range with the specified name.
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 bool check = worksheet.names.contains('NamedRange');
final List<int> bytes = workbook.saveAsStream();
saveAsExcel(bytes, 'ContainsNamedRange.xlsx');
workbook.dispose();
Implementation
bool contains(String name);