SingleChildCachedValue<CacheContentType> class
abstract
A type of CachedValue that contains another.
All elements of its public interface calls its child methods.
See also:
- DependentCachedValue and TimeToLiveCachedValue that are the main implementations of this class.
To subclass this, consider:
- A cache type may define custom behaviors to when and how a cache should be invalidated and refreshed.
- Avoid and verify for conflict with other cache types.
- Implemented types
-
- CachedValue<
CacheContentType>
- CachedValue<
- Implementers
- Available Extensions
Constructors
-
SingleChildCachedValue(CachedValue<
CacheContentType> child) -
Creates a cached value that wraps a child
const
Properties
-
child
→ CachedValue<
CacheContentType> -
A CachedValue in which this cache wraps.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isValid → bool
-
Check the current state of the cache.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → CacheContentType
-
Access the current cache value.
no setteroverride
Methods
-
invalidate(
) → void -
Marks the cache as invalid.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refresh(
) → CacheContentType -
Updates the cache to an updated state.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited