Image constructor

Image({
  1. required ImageProvider image,
  2. int? width,
  3. int? height,
  4. BoxFit fit = BoxFit.contain,
  5. Widget? placeholder,
  6. Widget? errorWidget,
  7. Key? key,
})

Implementation

Image({
  required this.image,
  this.width,
  this.height,
  this.fit = BoxFit.contain,
  this.placeholder,
  this.errorWidget,
  super.key,
});