VideoValue constructor

VideoValue({
  1. required VideoPlayerValue videoPlayerValue,
  2. required VideoConfig config,
  3. VideoInitStatus status = VideoInitStatus.none,
  4. double aspectRatio = 1.0,
  5. Duration duration = Duration.zero,
  6. Duration position = Duration.zero,
  7. bool isFullScreen = false,
  8. bool isVisible = false,
  9. bool isLock = false,
  10. bool isMaxPlaybackSpeed = false,
  11. bool isVerticalDrag = false,
  12. VerticalDragType? verticalDragType,
  13. double verticalDragValue = 0,
  14. bool isDragProgress = false,
  15. Duration dragDuration = Duration.zero,
  16. bool isMaxPreviewTime = false,
})

Constructs a video with the given values. Only videoPlayerValue is required. The rest will initialize with default values when unset.

Implementation

VideoValue({
  required this.videoPlayerValue,
  required this.config,
  this.status = VideoInitStatus.none,
  this.aspectRatio = 1.0,
  this.duration = Duration.zero,
  this.position = Duration.zero,
  this.isFullScreen = false,
  this.isVisible = false,
  this.isLock = false,
  this.isMaxPlaybackSpeed = false,
  this.isVerticalDrag = false,
  this.verticalDragType,
  this.verticalDragValue = 0,
  this.isDragProgress = false,
  this.dragDuration = Duration.zero,
  this.isMaxPreviewTime = false,
});