VideoView constructor

const VideoView({
  1. Key? key,
  2. required String videoUrl,
  3. double? width,
  4. double? height,
  5. BoxFit? fit = BoxFit.contain,
  6. bool autoPlay = false,
  7. bool looping = false,
  8. bool showControls = true,
  9. VideoErrorCallback? onError,
  10. VoidCallback? onPlay,
  11. VoidCallback? onPause,
  12. VoidCallback? onMute,
  13. VoidCallback? onUnmute,
  14. VisibilityCallback? onVisibilityChanged,
  15. VoidCallback? on50PercentVisible,
  16. QuartileCallback? onQuartile,
  17. EdgeInsetsGeometry? padding,
  18. EdgeInsetsGeometry? margin,
  19. BoxDecoration? decoration,
  20. BorderRadiusGeometry? borderRadius,
})

Implementation

const VideoView({
  Key? key,
  required this.videoUrl,
  this.width,
  this.height,
  this.fit = BoxFit.contain,
  this.autoPlay = false,
  this.looping = false,
  this.showControls = true,
  this.onError,
  this.onPlay,
  this.onPause,
  this.onMute,
  this.onUnmute,
  this.onVisibilityChanged,
  this.on50PercentVisible,
  this.onQuartile,
  this.padding,
  this.margin,
  this.decoration,
  this.borderRadius,
}) : super(key: key);