setDefaultSheet method
It returns true
if the passed sheetName
is successfully set to default opening sheet
otherwise returns false
.
Implementation
bool setDefaultSheet(String sheetName) {
if (_sheetMap[sheetName] != null) {
_defaultSheet = sheetName;
return true;
}
return false;
}