invalidate method

void invalidate()

Forgets the cached embedder without closing it.

For a build that failed: there is nothing to close, and leaving the bookkeeping behind is what made a one-off error permanent.

Implementation

void invalidate() => _cached = null;