VideoPlayerValue constructor
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,
- String? errorDescription,
Implementation
VideoPlayerValue({
required this.duration,
this.size = Size.zero,
this.position = Duration.zero,
this.caption = Caption.none,
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.errorDescription,
});