Song constructor

const Song({
  1. required String id,
  2. required String albumId,
  3. required String album,
  4. required String label,
  5. required String title,
  6. required String subtitle,
  7. required String lowResImage,
  8. required String mediumResImage,
  9. required String highResImage,
  10. required Uri imageURI,
  11. required int playCount,
  12. required int year,
  13. required String permaURL,
  14. required bool hasLyrics,
  15. String? lyrics,
  16. required String copyRightText,
  17. required String mediaURL,
  18. String? previewMediaURL,
  19. required Duration duration,
  20. required DateTime releaseDate,
  21. required List<Artist> allArtists,
})

Implementation

const Song({
  required this.id,
  required this.albumId,
  required this.album,
  required this.label,
  required this.title,
  required this.subtitle,
  required this.lowResImage,
  required this.mediumResImage,
  required this.highResImage,
  required this.imageURI,
  required this.playCount,
  required this.year,
  required this.permaURL,
  required this.hasLyrics,
  this.lyrics,
  required this.copyRightText,
  required this.mediaURL,
  this.previewMediaURL,
  required this.duration,
  required this.releaseDate,
  required this.allArtists,
});