PlaybackState constructor

PlaybackState({
  1. required ProcessingState processingState,
  2. required bool playing,
  3. required String title,
  4. required int position,
  5. required int duration,
  6. required int timestamp,
  7. double speed = 1.0,
  8. double volume = 1.0,
  9. String? artist,
  10. String? album,
  11. String? url,
  12. String? artUri,
  13. String? genre,
  14. int? trackNumber,
  15. int? trackCount,
  16. int? year,
})

Creates a new PlaybackState

Implementation

PlaybackState({
  required this.processingState,
  required this.playing,
  required this.title,
  required this.position,
  required this.duration,
  required this.timestamp,
  this.speed = 1.0,
  this.volume = 1.0,
  this.artist,
  this.album,
  this.url,
  this.artUri,
  this.genre,
  this.trackNumber,
  this.trackCount,
  this.year,
});