VideoViewer constructor

const VideoViewer({
  1. Key? key,
  2. required Map<String, VideoSource> source,
  3. VideoViewerStyle? style,
  4. VideoViewerController? controller,
  5. bool looping = false,
  6. bool autoPlay = false,
  7. double defaultAspectRatio = 16 / 9,
  8. int rewindAmount = -10,
  9. int forwardAmount = 10,
  10. bool onFullscreenFixLandscape = true,
  11. VideoViewerLanguage language = VideoViewerLanguage.en,
  12. VideoViewerVolumeManager volumeManager = VideoViewerVolumeManager.video,
  13. bool enableFullscreenScale = true,
  14. bool enableVerticalSwapingGesture = true,
  15. bool enableHorizontalSwapingGesture = true,
  16. bool enableShowReplayIconAtVideoEnd = true,
  17. bool enableChat = false,
})

Implementation

const VideoViewer({
  Key? key,
  required this.source,
  this.style,
  this.controller,
  this.looping = false,
  this.autoPlay = false,
  this.defaultAspectRatio = 16 / 9,
  this.rewindAmount = -10,
  this.forwardAmount = 10,
  this.onFullscreenFixLandscape = true,
  this.language = VideoViewerLanguage.en,
  this.volumeManager = VideoViewerVolumeManager.video,
  this.enableFullscreenScale = true,
  this.enableVerticalSwapingGesture = true,
  this.enableHorizontalSwapingGesture = true,
  this.enableShowReplayIconAtVideoEnd = true,
  this.enableChat = false,
}) : super(key: key);