ImageCacheStatus class Null safety
Information about how the ImageCache is tracking an image.
A pending image is one that has not completed yet. It may also be tracked as live because something is listening to it.
A keepAlive image is being held in the cache, which uses Least Recently Used semantics to determine when to evict an image. These images are subject to eviction based on ImageCache.maximumSizeBytes and ImageCache.maximumSize. It may be live, but not pending.
A live image is being held until its ImageStreamCompleter has no more listeners. It may also be pending or keepAlive.
An untracked image is not being cached.
To obtain an ImageCacheStatus, use ImageCache.statusForKey or ImageProvider.obtainCacheStatus.
- hashCode → int
The hash code for this object.
- keepAlive → bool
An image that has been submitted to ImageCache.putIfAbsent, has
completed, fits based on the sizing rules of the cache, and has not been
- live → bool
An image that has been submitted to ImageCache.putIfAbsent and has at
least one listener on its ImageStreamCompleter.
- pending → bool
An image that has been submitted to ImageCache.putIfAbsent, but
not yet completed.
- runtimeType → Type
A representation of the runtime type of the object.
- tracked → bool
An image that is tracked in some way by the ImageCache, whether
pending, keepAlive, or live.
- untracked → bool
An image that either has not been submitted to
ImageCache.putIfAbsent or has otherwise been evicted from the
keepAlive and live caches.
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
) → String
A string representation of this object.
Object other) → bool
The equality operator.