BaseResizeImage.asset constructor

BaseResizeImage.asset(
  1. String assetName, {
  2. AssetBundle? bundle,
  3. String? package,
  4. bool cacheRawData = false,
  5. String? imageCacheName,
  6. int? cacheWidth,
  7. int? cacheHeight,
  8. double? compressionRatio,
  9. int? maxBytes,
})

Implementation

BaseResizeImage.asset(
  String assetName, {
  AssetBundle? bundle,
  String? package,
  bool cacheRawData = false,
  String? imageCacheName,
  int? cacheWidth,
  int? cacheHeight,
  double? compressionRatio,
  int? maxBytes,
}) : super(ExtendedResizeImage.resizeIfNeeded(
          cacheWidth: cacheWidth,
          cacheHeight: cacheHeight,
          maxBytes: maxBytes,
          compressionRatio: compressionRatio,
          cacheRawData: cacheRawData,
          imageCacheName: imageCacheName,
          provider: ExtendedAssetImageProvider(assetName,
              bundle: bundle,
              package: package,
              cacheRawData: cacheRawData,
              imageCacheName: imageCacheName)));