PlaybackState constructor

const PlaybackState({
  1. required PlaybackStatus status,
  2. Duration position = Duration.zero,
  3. double speed = 1.0,
  4. Duration bufferedPosition = Duration.zero,
  5. MediaRepeatMode repeatMode = MediaRepeatMode.none,
  6. bool shuffleModeEnabled = false,
})

Creates a new PlaybackState instance.

Implementation

const PlaybackState({
  required this.status,
  this.position = Duration.zero,
  this.speed = 1.0,
  this.bufferedPosition = Duration.zero,
  this.repeatMode = MediaRepeatMode.none,
  this.shuffleModeEnabled = false,
});