PlaybackState constructor
const
PlaybackState({
- required PlaybackStatus status,
- Duration position = Duration.zero,
- double speed = 1.0,
- Duration bufferedPosition = Duration.zero,
- MediaRepeatMode repeatMode = MediaRepeatMode.none,
- 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,
});