ExtendedResizeImage constructor
const
ExtendedResizeImage(
- ImageProvider<
Object> imageProvider, { - double? compressionRatio,
- int? maxBytes = 50 << 10,
- int? width,
- int? height,
- bool allowUpscaling = false,
- bool cacheRawData = false,
- String? imageCacheName,
- ResizeImagePolicy policy = ResizeImagePolicy.exact,
Implementation
const ExtendedResizeImage(
this.imageProvider, {
this.compressionRatio,
this.maxBytes = 50 << 10,
this.width,
this.height,
this.allowUpscaling = false,
this.cacheRawData = false,
this.imageCacheName,
this.policy = ResizeImagePolicy.exact,
}) : assert((compressionRatio != null &&
compressionRatio > 0 &&
compressionRatio < 1 &&
!kIsWeb) ||
(maxBytes != null && maxBytes > 0 && !kIsWeb) ||
width != null ||
height != null);