BaseResizeImage.network constructor
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,
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)));