InternetImage constructor

InternetImage(
  1. String url, {
  2. Key? key,
  3. double? width,
  4. double? height,
  5. BoxFit? fit = BoxFit.fill,
  6. Widget? placeholder,
  7. Color? color,
  8. Widget? errorWidget,
  9. Widget? progressIndicatorWidget,
  10. BoxShape? shape,
  11. BorderRadius? borderRadius,
  12. BoxBorder? border,
  13. BoxFit? imageFit,
  14. double? cacheWidth,
  15. double? cacheHeight,
})

Implementation

InternetImage(
  this.url, {
  Key? key,
  this.width,
  this.height,
  this.fit = BoxFit.fill,
  this.placeholder,
  this.color,
  this.errorWidget,
  this.progressIndicatorWidget,
  this.shape,
  this.borderRadius,
  this.border,
  this.imageFit,
  this.cacheWidth,
  this.cacheHeight,
}) : super(key: key) {
  if (width != null && height == null) height = width;
  if (width == null && height != null) width = height;
  if (width == null && height != null) {
    width = 60;
    height = 60;
  }
}