NetImage constructor

const NetImage(
  1. String? imageUrl, {
  2. String? placeholder,
  3. BoxFit fit = BoxFit.cover,
  4. BoxFit? placeholderFit,
  5. double? width,
  6. double? height,
  7. Alignment alignment = Alignment.center,
  8. ImageRepeat repeat = ImageRepeat.noRepeat,
  9. bool matchTextDirection = false,
  10. Map<String, String>? httpHeaders,
  11. Color? color,
  12. double borderRadius = 0,
  13. Key? key,
})

Implementation

const NetImage(
  this.imageUrl, {
  this.placeholder,
  this.fit = BoxFit.cover,
  this.placeholderFit,
  this.width,
  this.height,
  this.alignment = Alignment.center,
  this.repeat = ImageRepeat.noRepeat,
  this.matchTextDirection = false,
  this.httpHeaders,
  this.color,
  this.borderRadius = 0,
  Key? key,
}) : super(key: key);