UniversalImageViewer constructor
const
UniversalImageViewer({
- Key? key,
- required ImageSource source,
- required String path,
- ImageContainerConfig config = const ImageContainerConfig(),
- Widget? errorWidget,
- Widget? loadingWidget,
- VoidCallback? onError,
- Map<
String, String> ? httpHeaders, - Duration? fadeInDuration,
- Duration? fadeOutDuration,
- Duration? placeholderFadeInDuration,
- int? maxHeightDiskCache,
- int? maxWidthDiskCache,
- int? memCacheHeight,
- int? memCacheWidth,
- 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,
});