next method
Skips to next track in the user’s queue.
deviceId
is optional. If not provided, the user's currently active device
is the target.
retrievePlaybackState
is optional. If true, the current playback state
will be retrieved. Defaults to true.
Implementation
Future<PlaybackState?> next(
{String? deviceId, bool retrievePlaybackState = true}) async {
await _api._post('$_path/next?${_buildQuery({'device_id': deviceId})}');
return retrievePlaybackState ? playbackState() : null;
}