source constructor

const source({
  1. String? type,
  2. String? src,
  3. String? id,
  4. String? classes,
  5. Styles? styles,
  6. Map<String, String>? attributes,
  7. Map<String, EventCallback>? events,
  8. Key? key,
})

The <source> HTML element specifies multiple media resources for the <picture>, the <audio> element, or the <video> element. It is an empty element, meaning that it has no content and does not have a closing tag. It is commonly used to offer the same media content in multiple file formats in order to provide compatibility with a broad range of browsers given their differing support for image file formats and media file formats.

Implementation

const source({
  this.type,
  this.src,
  this.id,
  this.classes,
  this.styles,
  this.attributes,
  this.events,
  super.key,
});