Scrobble constructor

Scrobble({
  1. required String track,
  2. String? album,
  3. required String artist,
  4. String? albumArtist,
  5. int? trackNumber,
  6. Duration? duration,
  7. DateTime? timestamp,
  8. String? context,
  9. String? streamId,
  10. bool? chosenByUser,
  11. String? mbid,
})

Implementation

Scrobble({
  required this.track,
  this.album,
  required this.artist,
  this.albumArtist,
  this.trackNumber,
  this.duration,
  DateTime? timestamp,
  this.context,
  this.streamId,
  this.chosenByUser,
  this.mbid,
}) : timestamp = timestamp ?? DateTime.now();