MyVideoPlayer constructor

const MyVideoPlayer({
  1. Key? key,
  2. String? url,
  3. double? height,
  4. double? width,
  5. bool allowFullScreen = true,
  6. bool allowSettings = false,
  7. String? asset,
  8. Uri? uri,
  9. File? file,
  10. bool autoPlay = false,
  11. bool showPlayPauseButton = true,
  12. bool showProgressBar = true,
  13. bool showVolumeControl = true,
  14. bool isFullScreen = false,
})

Implementation

const MyVideoPlayer({
  super.key,
  this.url,
  this.height,
  this.width,
  this.allowFullScreen = true,
  this.allowSettings = false,
  this.asset,
  this.uri,
  this.file,
  this.autoPlay = false,
  this.showPlayPauseButton = true,
  this.showProgressBar = true,
  this.showVolumeControl = true,
  this.isFullScreen = false, // New parameter
});