mixinafReflux::Images
afReflux::Images
(Service) - Maintains a cache of Images, ensuring they are disposed of properly.
- disposeAll
abstract Void disposeAll()
Disposes of all the images. This is called on registry shutdown. The
AppModule
config key isafReflux.disposeOfImages
.- get
@
Operator
abstract Image? get(Uri uri, Bool checked := true)Returns the image at the given URI, storing it in the cache.
- getFaded
abstract Image? getFaded(Uri uri, Bool checked := true)
Returns (and caches) a faded version of the image at the given URI. Useful for generating disabled icons.
- load
abstract Image? load(Uri uri, Bool checked := true)
Returns (and caches) the image at the given URI ensuring that it is fully loaded and that its
size()
is available.