VideoPlayer constructor

const VideoPlayer({
  1. required String videoUrl,
  2. bool autoPlay = false,
  3. bool muted = false,
  4. bool showControls = true,
  5. Map<String, String>? customHeaders,
  6. WidgetBuilder? loadingBuilder,
  7. WidgetBuilder? placeholderBuilder,
  8. double aspectRatio = 16 / 9,
  9. BorderRadius? borderRadius,
  10. Key? key,
})

Implementation

const VideoPlayer({
  required this.videoUrl,
  this.autoPlay = false,
  this.muted = false,
  this.showControls = true,
  this.customHeaders,
  this.loadingBuilder,
  this.placeholderBuilder,
  this.aspectRatio = 16 / 9,
  this.borderRadius,
  super.key,
});