Video constructor

const Video(
  1. VideoProvider videoProvider, {
  2. bool loop = true,
  3. double? width,
  4. double? height,
  5. BoxFit? fit,
  6. bool autoplay = false,
  7. bool mute = false,
  8. double iconSize = 64,
  9. bool controllable = false,
  10. bool mixWithOthers = false,
  11. VoidCallback? onTap,
  12. Color? iconColor,
})

Place the video as a widget.

A preview is also possible.

Implementation

const Video(
  this.videoProvider, {
  this.loop = true,
  this.width,
  this.height,
  this.fit,
  this.autoplay = false,
  this.mute = false,
  this.iconSize = 64,
  this.controllable = false,
  this.mixWithOthers = false,
  this.onTap,
  this.iconColor,
});