clear method

void clear()

Clear the worksheet.

Implementation

void clear() {
  if (_rows != null) {
    _rows!.clear();
  }

  if (_columns != null) {
    _columns!.clear();
  }

  if (_pictures != null) {
    _pictures!.clear();
  }

  if (_tableCollection != null) {
    _tableCollection!.clear();
    _tableCollection = null;
  }

  if (_mdataValidation != null) {
    _mdataValidation!.clear();
    _mdataValidation = null;
  }
}