CachedVideoPlayerValue constructor
CachedVideoPlayerValue({
- 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,
Constructs a video with the given values. Only duration
is required. The
rest will initialize with default values when unset.
Implementation
CachedVideoPlayerValue({
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,
});