refresh method
Calls refresh on its child and updates the local cache of dependency.
After refresh, the cache is considered valid.
The returned value should be the new cache value.
See also:
- CachedValue.refresh for the general behavior of refresh.
Implementation
@override
CacheContentType refresh() {
final newValue = super.refresh();
_dependencyCache = _getDependency();
return newValue;
}