$video

El $video({

  1. String? src,
  2. String? className,
  3. String? id,
  4. int? width,
  5. int? height,
  6. bool? controls,
  7. bool? autoplay,
  8. bool? loop,
  9. bool? muted,
  10. String? poster,
  11. Map<String, dynamic>? style,
  12. Map<String, dynamic>? props,
})

Creates a <video> element wrapper for JSX-style composition.

Implementation

El $video({
  String? src,
  String? className,
  String? id,
  int? width,
  int? height,
  bool? controls,
  bool? autoplay,
  bool? loop,
  bool? muted,
  String? poster,
  Map<String, dynamic>? style,
  Map<String, dynamic>? props,
}) {
  final p = _buildJsxProps(
    className: className,
    id: id,
    style: style,
    props: props,
  );
  if (src != null) p['src'] = src;
  if (width != null) p['width'] = width;
  if (height != null) p['height'] = height;
  if (controls != null) p['controls'] = controls;
  if (autoplay != null) p['autoplay'] = autoplay;
  if (loop != null) p['loop'] = loop;
  if (muted != null) p['muted'] = muted;
  if (poster != null) p['poster'] = poster;
  return El(_createJsxElement('video', p));
}