ImageCacheStatus class

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.
no setteroverride
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.
no setterinherited
tracked bool
An image that is tracked in some way by the ImageCache, whether pending, keepAlive, or live.
no setter
untracked bool
An image that either has not been submitted to ImageCache.putIfAbsent or has otherwise been evicted from the keepAlive and live caches.
no setter

Methods

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

Operators

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