ImageViewer constructor

ImageViewer({
  1. Future<void> onTap()?,
  2. String? htmlImage,
  3. String? assetImage,
  4. bool? alive,
  5. double? width,
  6. double? height,
  7. Widget? onErrorWidget,
  8. Widget? onLoadingWidget,
  9. EdgeInsetsGeometry? margin = EdgeInsets.zero,
  10. Color? backgroundColor,
  11. BorderRadius? borderRadius,
  12. Border? border,
  13. BoxShadow? shadow,
  14. BoxFit? fit = BoxFit.cover,
  15. BoxShape? shape = BoxShape.rectangle,
  16. Map<String, String>? headers,
  17. Key? key,
  18. Object? tag,
  19. Duration? duration,
  20. int? maxSize,
})

Implementation

ImageViewer({
  super.onTap,
  super.htmlImage,
  super.assetImage,
  super.alive,
  super.width,
  super.height,
  super.onErrorWidget,
  super.onLoadingWidget,
  super.margin,
  super.backgroundColor,
  super.borderRadius,
  super.border,
  super.shadow,
  super.fit,
  super.shape,
  super.headers,
  super.key,
  super.tag,
  super.duration,
  super.maxSize,
}) :
assert( htmlImage == null || assetImage == null, "Only one image must be provided" ),
super(
  readOnly      : true,
  filterOpacity : 0,
  viewerBlur    : false,
);