invalidateCache method

void invalidateCache()

Invalidates the cached state

CRDTDocument automatically invalidates the cache when an external effect happens (import, export, etc.).

Implementation

void invalidateCache() {
  _cachedState = null;
  _cachedVersion = null;
}