clearCache static method

void clearCache()

Empties the cache.

Icons are small, so this is rarely about memory. It matters when a source has changed behind a stable key — a hot-reloaded asset, a re-fetched URL.

Note that anything already handed to a widget keeps working; the next load simply produces a new instance, which a mounted MorphIcon will treat as a new icon and animate to.

Implementation

static void clearCache() {
  _cache.clear();
  _pending.clear();
}