dispose method

void dispose()

Clear all the stored cache from this SVG, be sure to call this method once the instance is no longer needed to avoid memory leaks

Implementation

void dispose() {
  _imageCache.keys.forEach((key) {
    _imageCache.getValue(key)?.dispose();
  });
  _imageCache.clearCache();
}