ImageCacheController class

A controller class to precache a list of provided images on startup.

The images are put onto the image cache to be displayed faster without the need of fetching them on the widget itself which will reduce the loading time of each image. In order to keep the loading time as short as possible and to avoid to much memory alloation on runtime, the precached image should be rather small. Compressing the image or reducing the resolution can help reducing the image size.

Constructors

ImageCacheController({required BuildContext context, required List<String?> assetImages, bool showDebugOutput = false})
Creates an ImageCacheController and initalizes the precache precedure.

Properties

assetImages List<String?>
The image locations.
final
context BuildContext
The context will provide a contract to the current widget tree's state.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showDebugOutput bool
States whether to show debug output.
final

Methods

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

Operators

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