setDefaultSheet method

bool setDefaultSheet(
  1. String sheetName
)

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;
}