name property
String
get
name
Returns or sets the name of the worksheet.
Workbook workbook = Workbook();
Worksheet sheet = workbook.worksheets[0];
sheet.name = 'MySheet';
List<int> bytes = workbook.saveAsStream();
File('ExcelSheetName.xlsx').writeAsBytes(bytes);
workbook.dispose();
Implementation
String get name {
if (_name == '') {
_name = 'Sheet$index';
}
return _name;
}
set
name
(String value)
Implementation
set name(String value) {
_name = value;
}