Video constructor

Video({
  1. required String src,
  2. MediaController? controller,
  3. String? className,
  4. Map<String, dynamic>? style,
  5. String? id,
  6. Map<String, String>? attributes,
  7. List<Component>? children,
  8. List<String>? fallback,
  9. String? poster,
  10. String? alt,
  11. String? width,
  12. String? height,
  13. void onLoad(
    1. Event
    )?,
  14. void onError(
    1. Event
    )?,
  15. void onAbort(
    1. Event
    )?,
  16. String tag = "video",
  17. List<MediaControl>? controls = MediaControl.values,
  18. bool autoPlay = false,
  19. bool loop = false,
  20. bool muted = false,
  21. bool playsInline = false,
  22. bool showControls = true,
})

Video component.

The src parameter is used to determine the source of the video.

Implementation

Video({
  required super.src,
  this.controller,
  super.className,
  super.style,
  super.id,
  super.attributes,
  super.children,
  super.fallback,
  super.poster,
  super.alt,
  super.width,
  super.height,
  super.onLoad,
  super.onError,
  super.onAbort,
  super.tag = "video",
  this.controls = MediaControl.values,
  this.autoPlay = false,
  this.loop = false,
  this.muted = false,
  this.playsInline = false,
  this.showControls = true,
});