VideoValue constructor
VideoValue({
- required VideoPlayerValue videoPlayerValue,
- required VideoConfig config,
- VideoInitStatus status = VideoInitStatus.none,
- double aspectRatio = 1.0,
- Duration duration = Duration.zero,
- Duration position = Duration.zero,
- bool isFullScreen = false,
- bool isVisible = false,
- bool isLock = false,
- bool isMaxPlaybackSpeed = false,
- bool isVerticalDrag = false,
- VerticalDragType? verticalDragType,
- double verticalDragValue = 0,
- bool isDragProgress = false,
- Duration dragDuration = Duration.zero,
- 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,
});