AppMediaItem constructor

AppMediaItem({
  1. String id = '',
  2. String album = '',
  3. String? albumId,
  4. String artist = '',
  5. String? artistId,
  6. List<String>? externalArtists,
  7. Map<String, String>? featInternalArtists,
  8. int duration = 0,
  9. List<String>? genres,
  10. String imgUrl = '',
  11. List<String>? allImgs,
  12. String? language,
  13. String? description,
  14. String name = '',
  15. String url = '',
  16. List<String>? allUrls,
  17. String? publisher,
  18. int? publishedYear,
  19. int? quality,
  20. String permaUrl = '',
  21. int releaseDate = 0,
  22. String lyrics = '',
  23. int? trackNumber,
  24. int? discNumber,
  25. AppMediaSource mediaSource = AppMediaSource.internal,
  26. bool is320Kbps = false,
  27. int likes = 0,
  28. String? path,
  29. MediaItemType? type,
  30. int state = 0,
})

Implementation

AppMediaItem({
  this.id = '',
  this.album = '',
  this.albumId,
  this.artist = '',
  this.artistId,
  this.externalArtists,
  this.featInternalArtists,
  this.duration = 0,
  this.genres,
  this.imgUrl = '',
  this.allImgs,
  this.language,
  this.description,
  this.name = '',
  this.url = '',
  this.allUrls,
  this.publisher,
  this.publishedYear, ///YEAR
  this.quality,
  this.permaUrl = '',
  this.releaseDate = 0,
  this.lyrics = '',
  this.trackNumber,
  this.discNumber,
  this.mediaSource = AppMediaSource.internal,
  this.is320Kbps = false,
  this.likes = 0,
  this.path,
  this.type,
  this.state = 0,
});