AdvancedNetworkImage constructor
AdvancedNetworkImage(
- String url, {
- double scale = 1.0,
- int? width,
- int? height,
- Map<
String, String> ? header, - bool useDiskCache = false,
- int retryLimit = 5,
- Duration retryDuration = const Duration(milliseconds: 500),
- double retryDurationFactor = 1.5,
- Duration timeoutDuration = const Duration(seconds: 5),
- VoidCallback? loadedCallback,
- VoidCallback? loadFailedCallback,
- VoidCallback? loadedFromDiskCacheCallback,
- String? fallbackAssetImage,
- Uint8List? fallbackImage,
- CacheRule? cacheRule,
- LoadingProgress? loadingProgress,
- UrlResolver? getRealUrl,
- _ImageProcessing? preProcessing,
- _ImageProcessing? postProcessing,
- bool printError = false,
- List<
int> ? skipRetryStatusCode, - String? id,
Implementation
AdvancedNetworkImage(
this.url, {
this.scale = 1.0,
this.width,
this.height,
this.header,
this.useDiskCache = false,
this.retryLimit = 5,
this.retryDuration = const Duration(milliseconds: 500),
this.retryDurationFactor = 1.5,
this.timeoutDuration = const Duration(seconds: 5),
this.loadedCallback,
this.loadFailedCallback,
this.loadedFromDiskCacheCallback,
this.fallbackAssetImage,
this.fallbackImage,
this.cacheRule,
this.loadingProgress,
this.getRealUrl,
this.preProcessing,
this.postProcessing,
this.printError = false,
this.skipRetryStatusCode,
this.id,
});