img constructor

const img({
  1. String? alt,
  2. CrossOrigin? crossOrigin,
  3. int? width,
  4. int? height,
  5. MediaLoading? loading,
  6. required String src,
  7. ReferrerPolicy? referrerPolicy,
  8. String? id,
  9. String? classes,
  10. Styles? styles,
  11. Map<String, String>? attributes,
  12. Map<String, EventCallback>? events,
  13. Key? key,
})

The <img> HTML element embeds an image into the document.

Implementation

const img({
  this.alt,
  this.crossOrigin,
  this.width,
  this.height,
  this.loading,
  required this.src,
  this.referrerPolicy,
  this.id,
  this.classes,
  this.styles,
  this.attributes,
  this.events,
  super.key,
});