addToQueue method
Adds the item with the given uriToAdd to the end of the user's playback queue.
Implementation
Future<void> addToQueue(String uriToAdd, {String? deviceId}) async {
final uri = Uri.https(
_baseApiHost,
'/v1/me/player/queue',
{
'uri': uriToAdd,
if (deviceId != null) 'device_id': deviceId,
},
);
await _postJson(uri);
}