NowPlayingTrack constructor
Implementation
NowPlayingTrack({
this.id,
this.title,
this.album,
this.artist,
this.duration = Duration.zero,
this.state = NowPlayingState.stopped,
this.source,
Duration position,
DateTime createdAt,
}) :
this._position = position ?? Duration.zero,
this._createdAt = createdAt ?? DateTime.now();