XVideoPlayerValue constructor

const XVideoPlayerValue({
  1. bool isInitialized = false,
  2. bool isPlaying = false,
  3. bool isBuffering = false,
  4. bool isLooping = false,
  5. int rotationQuarterTurns = 0,
  6. Duration position = Duration.zero,
  7. Duration duration = Duration.zero,
  8. Size size = Size.zero,
  9. double volume = 1.0,
  10. double playbackSpeed = 1.0,
  11. List<XDurationRange> buffered = const [],
  12. String? errorDescription,
})

Binds a full state snapshot; every field defaults to its pre-initialize value.

Implementation

const XVideoPlayerValue({
  this.isInitialized = false,
  this.isPlaying = false,
  this.isBuffering = false,
  this.isLooping = false,
  this.rotationQuarterTurns = 0,
  this.position = Duration.zero,
  this.duration = Duration.zero,
  this.size = Size.zero,
  this.volume = 1.0,
  this.playbackSpeed = 1.0,
  this.buffered = const [],
  this.errorDescription,
});