visibility property
WorksheetVisibility
get
visibility
Get the visibility of worksheet.
Implementation
WorksheetVisibility get visibility {
return _visibility;
}
set
visibility
(WorksheetVisibility visibilty)
Set the visibility of worksheet.
Implementation
set visibility(WorksheetVisibility visibilty) {
if (book.worksheets.innerList.length <= 1 &&
visibilty == WorksheetVisibility.hidden) {
throw Exception(
'A workbook must contain at least one visible worksheet.');
} else {
_visibility = visibilty;
}
}