AdvancedNetworkImage constructor

AdvancedNetworkImage(
  1. String url, {
  2. double scale = 1.0,
  3. int? width,
  4. int? height,
  5. Map<String, String>? header,
  6. bool useDiskCache = false,
  7. int retryLimit = 5,
  8. Duration retryDuration = const Duration(milliseconds: 500),
  9. double retryDurationFactor = 1.5,
  10. Duration timeoutDuration = const Duration(seconds: 5),
  11. VoidCallback? loadedCallback,
  12. VoidCallback? loadFailedCallback,
  13. VoidCallback? loadedFromDiskCacheCallback,
  14. String? fallbackAssetImage,
  15. Uint8List? fallbackImage,
  16. CacheRule? cacheRule,
  17. LoadingProgress? loadingProgress,
  18. UrlResolver? getRealUrl,
  19. _ImageProcessing? preProcessing,
  20. _ImageProcessing? postProcessing,
  21. bool printError = false,
  22. List<int>? skipRetryStatusCode,
  23. 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,
});