video constructor
const
video(
- List<
Component> children, { - bool autoplay = false,
- bool controls = false,
- CrossOrigin? crossOrigin,
- bool loop = false,
- bool muted = false,
- String? poster,
- Preload? preload,
- String? src,
- int? width,
- int? height,
- String? id,
- String? classes,
- Styles? styles,
- Map<
String, String> ? attributes, - Map<
String, EventCallback> ? events, - 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,
});