ImageViewer.expand constructor

ImageViewer.expand({
  1. String? urlImage,
  2. String? assetImage,
  3. Widget? onErrorWidget,
  4. Widget? onLoadingWidget,
  5. Color? backgroundColor,
  6. BorderRadius? borderRadius,
  7. Border? border,
  8. BoxShadow? shadow,
  9. EdgeInsetsGeometry? margin,
  10. BoxFit? fit,
  11. Object? tag,
  12. Duration? duration,
  13. int? maxSize,
  14. Map<String, String>? headers,
  15. Key? key,
  16. IconData? errorIcon,
})

Implementation

ImageViewer.expand({
  super.urlImage,
  super.assetImage,
  super.onErrorWidget,
  super.onLoadingWidget,
  super.backgroundColor,
  super.borderRadius,
  super.border,
  super.shadow,
  final EdgeInsetsGeometry ? margin,
  final BoxFit             ? fit,
  super.tag,
  super.duration,
  super.maxSize,
  super.headers,
  super.key,
  super.errorIcon,
}) :
assert( urlImage == null || assetImage == null, "Only one image must be provided" ),
super(
  width           : double.infinity,
  height          : double.infinity,
  margin          : margin           ?? EdgeInsets.zero,
  readOnly        : true,
  fit             : fit              ?? BoxFit.cover,
  viewerBlur      : false,
  viewerBlurSigma : 0,
  shape           : BoxShape.circle,
);