invalidate method
Marks the cache as invalid.
This means that the cached value will be considered outdated and next time value is accessed, refresh will be called.
Calling this on a subclass of SingleChildCachedValue makes the child also invalid.
Implementation
@override
void invalidate() {
_isValid = false;
}