isValid property

bool isValid

Check the current state of the cache.

On a simple SimpleCachedValue caches it only checks if invalidate has been called.

On a DependentCachedValue checks if the result of the dependency callback has changed and its child is valid.

on TimeToLiveCachedValue checks if its ligetime has been spent and if its child is valid.

Implementation

bool get isValid;