hyperlinks property
HyperlinkCollection
get
hyperlinks
Gets/Sets a hyperlink collections in the worksheet.
final Workbook workbook = Workbook();
final Worksheet sheet = workbook.worksheets[0];
final Range range = sheet.getRangeByName('A1');
// Add hyperlink to sheet.
sheet.hyperlinks
.add(range, HyperlinkType.url, 'http://www.syncfusion.com');
//Save and dispose.
List<int> bytes = workbook.saveAsStream();
File('Hyperlinks.xlsx').writeAsBytes(bytes);
workbook.dispose();
Implementation
HyperlinkCollection get hyperlinks {
_hyperlinks ??= HyperlinkCollection(this);
return _hyperlinks!;
}