Image constructor

Image(
  1. ImageProvider image, {
  2. BoxFit fit = BoxFit.contain,
  3. Alignment alignment = Alignment.center,
  4. double? width,
  5. double? height,
  6. double? dpi,
})

Implementation

Image(
  this.image, {
  this.fit = BoxFit.contain,
  this.alignment = Alignment.center,
  this.width,
  this.height,
  this.dpi,
});