clearCache static method

void clearCache()

Clears the global parse cache.

Use this when you want to force re-parsing of all content, for example after a theme change or when memory needs to be freed.

Example:

// Clear cache when app theme changes
void onThemeChanged() {
  SmoothMarkdown.clearCache();
}

Implementation

static void clearCache() {
  _parseCache.clear();
}