UMediaValue constructor

const UMediaValue({
  1. UMediaState state = UMediaState.idle,
  2. Duration position = Duration.zero,
  3. Duration duration = Duration.zero,
  4. Duration bufferedPosition = Duration.zero,
  5. List<UBufferedRange> buffered = const <UBufferedRange>[],
  6. bool isLive = false,
  7. Duration liveOffset = Duration.zero,
  8. double speed = 1,
  9. double volume = 1,
  10. bool muted = false,
  11. int width = 0,
  12. int height = 0,
  13. int rotationDegrees = 0,
  14. List<UMediaTrack> tracks = const <UMediaTrack>[],
  15. int currentIndex = 0,
  16. int queueLength = 0,
  17. bool shuffle = false,
  18. URepeatMode repeat = URepeatMode.off,
  19. UPipState pip = UPipState.unavailable,
  20. UMediaMetadata? metadata,
  21. UMediaError? error,
})

Implementation

const UMediaValue({
  this.state = UMediaState.idle,
  this.position = Duration.zero,
  this.duration = Duration.zero,
  this.bufferedPosition = Duration.zero,
  this.buffered = const <UBufferedRange>[],
  this.isLive = false,
  this.liveOffset = Duration.zero,
  this.speed = 1,
  this.volume = 1,
  this.muted = false,
  this.width = 0,
  this.height = 0,
  this.rotationDegrees = 0,
  this.tracks = const <UMediaTrack>[],
  this.currentIndex = 0,
  this.queueLength = 0,
  this.shuffle = false,
  this.repeat = URepeatMode.off,
  this.pip = UPipState.unavailable,
  this.metadata,
  this.error,
});