UniversalImageViewer constructor

const UniversalImageViewer({
  1. Key? key,
  2. required ImageSource source,
  3. required String path,
  4. ImageContainerConfig config = const ImageContainerConfig(),
  5. Widget? errorWidget,
  6. Widget? loadingWidget,
  7. VoidCallback? onError,
  8. Map<String, String>? httpHeaders,
  9. Duration? fadeInDuration,
  10. Duration? fadeOutDuration,
  11. Duration? placeholderFadeInDuration,
  12. int? maxHeightDiskCache,
  13. int? maxWidthDiskCache,
  14. int? memCacheHeight,
  15. int? memCacheWidth,
  16. BaseCacheManager? cacheManager,
})

Implementation

const UniversalImageViewer({
  super.key,
  required this.source,
  required this.path,
  this.config = const ImageContainerConfig(),
  this.errorWidget,
  this.loadingWidget,
  this.onError,
  this.httpHeaders,
  this.fadeInDuration,
  this.fadeOutDuration,
  this.placeholderFadeInDuration,
  this.maxHeightDiskCache,
  this.maxWidthDiskCache,
  this.memCacheHeight,
  this.memCacheWidth,
  this.cacheManager,
});