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