Video constructor

const Video({
  1. Key? key,
  2. required Uri source,
  3. int? width,
  4. int? height,
  5. String? defaultText = 'Video cannot be played.',
  6. bool showControls = true,
  7. bool autoplay = false,
  8. bool loop = false,
  9. bool muted = false,
  10. Uri? poster,
})

Implementation

const Video({
  super.key,
  required this.source,
  this.width,
  this.height,
  this.defaultText = 'Video cannot be played.',
  this.showControls = true,
  this.autoplay = false,
  this.loop = false,
  this.muted = false,
  this.poster,
});