ExtendedResizeImage constructor

const ExtendedResizeImage(
  1. ImageProvider<Object> imageProvider, {
  2. double? compressionRatio,
  3. int? maxBytes = 50 << 10,
  4. int? width,
  5. int? height,
  6. bool allowUpscaling = false,
  7. bool cacheRawData = false,
  8. String? imageCacheName,
  9. 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);