maxCacheHeight property

int? maxCacheHeight
final

Resize the image and save the resized bytes to storage, see resizeImage.

If only one of maxCacheWidth or maxCacheHeight are specified, the other dimension will be scaled according to the aspect ratio of the supplied dimension. If either maxCacheWidth or maxCacheHeight is less than the original value, it will be ignored.

Animated images wouldn't resize

Implementation

/// If either maxCacheWidth or maxCacheHeight is less than the original value,
/// it will be ignored.
///
/// Animated images wouldn't resize
final int? maxCacheHeight, maxCacheWidth;