BaseResizeImage.network constructor

BaseResizeImage.network(
  1. String url, {
  2. double scale = 1.0,
  3. Map<String, String>? headers,
  4. bool cache = true,
  5. int retries = 3,
  6. Duration? timeLimit,
  7. Duration timeRetry = const Duration(milliseconds: 100),
  8. CancellationToken? cancelToken,
  9. String? cacheKey,
  10. bool printError = true,
  11. Duration? cacheMaxAge,
  12. int? cacheWidth,
  13. int? cacheHeight,
  14. double? compressionRatio,
  15. int? maxBytes,
  16. bool cacheRawData = false,
  17. String? imageCacheName,
})

Implementation

BaseResizeImage.network(
  String url, {
  double scale = 1.0,
  Map<String, String>? headers,
  bool cache = true,
  int retries = 3,
  Duration? timeLimit,
  Duration timeRetry = const Duration(milliseconds: 100),
  CancellationToken? cancelToken,
  String? cacheKey,
  bool printError = true,
  Duration? cacheMaxAge,
  int? cacheWidth,
  int? cacheHeight,
  double? compressionRatio,
  int? maxBytes,
  bool cacheRawData = false,
  String? imageCacheName,
}) : super(ExtendedResizeImage.resizeIfNeeded(
          cacheWidth: cacheWidth,
          cacheHeight: cacheHeight,
          maxBytes: maxBytes,
          compressionRatio: compressionRatio,
          cacheRawData: cacheRawData,
          imageCacheName: imageCacheName,
          provider: ExtendedNetworkImageProvider(url,
              scale: scale,
              headers: headers,
              cache: cache,
              cancelToken: cancelToken,
              retries: retries,
              timeRetry: timeRetry,
              timeLimit: timeLimit,
              cacheKey: cacheKey,
              printError: printError,
              cacheRawData: cacheRawData,
              imageCacheName: imageCacheName,
              cacheMaxAge: cacheMaxAge)));