refresh method

  1. @override
CacheContentType refresh()
override

Calls refresh on its child and restarts the internal Timer.

After refresh, the cache is considered valid.

The returned value should be the new cache value.

See also:

Implementation

@override
CacheContentType refresh() {
  final newValue = super.refresh();
  _startLifeAgain();
  return newValue;
}