VideoPlayer constructor

const VideoPlayer({
  1. required String source,
  2. bool autoPlay = false,
  3. bool muted = false,
  4. bool showControls = true,
  5. WPVideoPlayerConfig? config,
  6. double aspectRatio = 16 / 9,
  7. BorderRadius? borderRadius,
  8. Key? key,
})

Implementation

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