Audio constructor

Audio({
  1. required String id,
  2. required AudioSource audioSource,
  3. required String title,
  4. String? album,
  5. String? artist,
  6. String? genre,
  7. Duration? duration,
  8. Uri? image,
  9. bool? playable = true,
  10. String? displayTitle,
  11. String? displaySubtitle,
  12. String? displayDescription,
  13. Map<String, dynamic>? extras,
})

Implementation

Audio({
  required this.id,
  required this.audioSource,
  required this.title,
  this.album,
  this.artist,
  this.genre,
  this.duration,
  this.image,
  this.playable = true,
  this.displayTitle,
  this.displaySubtitle,
  this.displayDescription,
  // this.rating,
  this.extras,
});