UidlVideoPlayer constructor

const UidlVideoPlayer({
  1. Key? key,
  2. required String src,
  3. BoxFit fit = BoxFit.contain,
  4. bool autoplay = true,
  5. bool muted = false,
  6. bool loop = false,
  7. bool showControls = true,
  8. bool showLiveBadge = false,
  9. String? title,
  10. VoidCallback? onPlay,
  11. VoidCallback? onPause,
})

Implementation

const UidlVideoPlayer({
  super.key,
  required this.src,
  this.fit = BoxFit.contain,
  this.autoplay = true,
  this.muted = false,
  this.loop = false,
  this.showControls = true,
  this.showLiveBadge = false,
  this.title,
  this.onPlay,
  this.onPause,
});