audio constructor

const audio(
  1. List<Component> children, {
  2. bool autoplay = false,
  3. bool controls = false,
  4. CrossOrigin? crossOrigin,
  5. bool loop = false,
  6. bool muted = false,
  7. Preload? preload,
  8. String? src,
  9. String? id,
  10. String? classes,
  11. Styles? styles,
  12. Map<String, String>? attributes,
  13. Map<String, EventCallback>? events,
  14. Key? key,
})

The <audio> HTML element is used to embed sound content in documents. It may contain one or more audio sources, represented using the src attribute or the <source> element: the browser will choose the most suitable one. It can also be the destination for streamed media, using a MediaStream.

Implementation

const audio(
  this.children, {
  this.autoplay = false,
  this.controls = false,
  this.crossOrigin,
  this.loop = false,
  this.muted = false,
  this.preload,
  this.src,
  this.id,
  this.classes,
  this.styles,
  this.attributes,
  this.events,
  super.key,
});