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.

Annotations

Properties

hashCode int
The hash code for this object.
read-onlyoverride
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 evicted.
final
live bool
An image that has been submitted to ImageCache.putIfAbsent and has at least one listener on its ImageStreamCompleter.
final
pending bool
An image that has been submitted to ImageCache.putIfAbsent, but not yet completed.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
tracked bool
An image that is tracked in some way by the ImageCache, whether pending, keepAlive, or live.
read-only
untracked bool
An image that either has not been submitted to ImageCache.putIfAbsent or has otherwise been evicted from the keepAlive and live caches.
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override