dispose method

void dispose()

Dispose objects.

Implementation

void dispose() {
  if (_archives != null) {
    _archives = null;
  }

  if (_worksheets != null) {
    _worksheets!._clear();
  }

  _sharedString.clear();

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

  _mergedCellsStyle.clear();

  fonts.clear();

  innerNamesCollection.clear();

  borders.clear();

  fills.clear();

  _styles._clear();

  _cellXfs.clear();

  _rawFormats._clear();

  _cellStyleXfs.clear();

  // if (_printTitles != null) {
  //   _printTitles.clear();
  //   _printTitles = null;
  // }

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

  _unitsProportions.clear();
}