getCurrentlyPlayingTrack method
Gets the track currently playing on the user's active device.
Returns null if nothing is playing or no device is active.
Implementation
Future<Track?> getCurrentlyPlayingTrack() async {
final uri = Uri.https(_baseApiHost, '/v1/me/player/currently-playing');
final json = await _getJson(uri);
if (json == null || json.isEmpty || json['item'] == null) return null;
return Track.fromJson(json['item']);
}