TrackModel constructor

TrackModel({
  1. required String id,
  2. required String name,
  3. required SimplifiedAlbum album,
  4. required List<SimplifiedArtist> artists,
  5. required List<Market> availableMarkets,
  6. required int discNumber,
  7. required Duration duration,
  8. required bool explicit,
  9. required bool isPlayable,
  10. required int popularity,
  11. required String? previewUrl,
  12. required int trackNumber,
})

Implementation

TrackModel(
    {required this.id,
    required this.name,
    required this.album,
    required this.artists,
    required this.availableMarkets,
    required this.discNumber,
    required this.duration,
    required this.explicit,
    required this.isPlayable,
    required this.popularity,
    required this.previewUrl,
    required this.trackNumber});