invalidateCache method
void
invalidateCache()
Drops the cached state. The framework calls this automatically when the consumer's state is no longer guaranteed to match the document (e.g. external changes imported, snapshot merged, history pruned).
Implementation
void invalidateCache() {
_cachedState = null;
_cachedVersion = null;
}