UTrackRecord constructor

UTrackRecord({
  1. required String path,
  2. required String title,
  3. required String artist,
  4. required String album,
  5. String? albumArtist,
  6. String? genre,
  7. int? year,
  8. int? trackNumber,
  9. int? discNumber,
  10. int durationMs = 0,
  11. int sizeBytes = 0,
  12. int addedAt = 0,
  13. int artworkOffset = 0,
  14. int artworkLength = 0,
  15. String? artworkMime,
})

Implementation

UTrackRecord({
  required this.path,
  required this.title,
  required this.artist,
  required this.album,
  this.albumArtist,
  this.genre,
  this.year,
  this.trackNumber,
  this.discNumber,
  this.durationMs = 0,
  this.sizeBytes = 0,
  this.addedAt = 0,
  this.artworkOffset = 0,
  this.artworkLength = 0,
  this.artworkMime,
}) : searchKey = UBidi.normalizePersian("$title $artist $album").toLowerCase();