ImageWidget constructor

const ImageWidget(
  1. String image, {
  2. Key? key,
  3. double? width,
  4. double? height,
  5. double radius = 2,
  6. Color? borderColor,
  7. double borderWidth = 0,
  8. BoxFit fit = BoxFit.contain,
  9. AlignmentGeometry alignment = Alignment.center,
})

Implementation

const ImageWidget(
  this.image, {
  Key? key,
  this.width,
  this.height,
  this.radius = 2,
  this.borderColor,
  this.borderWidth = 0,
  this.fit = BoxFit.contain,
  this.alignment = Alignment.center,
}) : super(key: key);