PlayerState constructor

const PlayerState({
  1. bool playing = false,
  2. Duration position = Duration.zero,
  3. int? width,
  4. int? height,
  5. List<String> subtitle = const ['', ''],
  6. bool buffering = false,
  7. Duration buffer = Duration.zero,
  8. Duration duration = Duration.zero,
  9. double volume = 1.0,
  10. double rate = 1.0,
  11. bool completed = false,
})

PlayerState

Instantaneous state of the Player.

Implementation

const PlayerState({
  this.playing = false,
  this.position = Duration.zero,
  this.width,
  this.height,
  this.subtitle = const ['', ''],
  this.buffering = false,
  this.buffer = Duration.zero,
  this.duration = Duration.zero,
  // this.playlist = const [],
  this.volume = 1.0,
  this.rate = 1.0,
  this.completed = false,
});