VideoPlayerValue constructor

VideoPlayerValue({
  1. required Duration? duration,
  2. Size? size,
  3. Duration position = const Duration(),
  4. List<DurationRange> buffered = const <DurationRange>[],
  5. bool isPlaying = false,
  6. bool isLooping = false,
  7. bool isBuffering = false,
  8. bool isMuted = false,
  9. double volume = 1.0,
  10. String? errorDescription,
})

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

Implementation

VideoPlayerValue({
  required this.duration,
  this.size,
  this.position = const Duration(),
  this.buffered = const <DurationRange>[],
  this.isPlaying = false,
  this.isLooping = false,
  this.isBuffering = false,
  this.isMuted = false,
  this.volume = 1.0,
  this.errorDescription,
});