video constructor

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

The <video> HTML element embeds a media player which supports video playback into the document. You can use <video> for audio content as well, but the <audio> element may provide a more appropriate user experience.

Implementation

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