VideoPlayerValue constructor
const
VideoPlayerValue({
- required Duration duration,
- Size size = Size.zero,
- Duration position = Duration.zero,
- List<
DurationRange> buffered = const <DurationRange>[], - bool isInitialized = false,
- bool isPlaying = false,
- bool isLooping = false,
- bool isBuffering = false,
- double volume = 1.0,
- double playbackSpeed = 1.0,
- int rotationCorrection = 0,
- String? errorDescription,
- bool isCompleted = false,
Constructs a video with the given values. Only duration
is required. The
rest will initialize with default values when unset.
Implementation
const VideoPlayerValue({
required this.duration,
this.size = Size.zero,
this.position = Duration.zero,
this.caption = Caption.none,
this.captionOffset = Duration.zero,
this.buffered = const <DurationRange>[],
this.isInitialized = false,
this.isPlaying = false,
this.isLooping = false,
this.isBuffering = false,
this.volume = 1.0,
this.playbackSpeed = 1.0,
this.rotationCorrection = 0,
this.errorDescription,
this.isCompleted = false,
});