cacheWidth property

int? cacheWidth
final

If cacheWidth or cacheHeight are provided, it indicates to the engine that the image should be decoded at the specified size. The image will be rendered to the constraints of the layout or width and height regardless of these parameters. These parameters are primarily intended to reduce the memory usage of ImageCache.

In the case where the network image is on the Web platform, the cacheWidth and cacheHeight parameters are ignored as the web engine delegates image decoding to the web which does not support custom decode sizes.

Implementation

final int? cacheWidth;