previous method
Skips to previous 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?> previous(
{String? deviceId, bool retrievePlaybackState = true}) async {
await _api._post('$_path/previous?${_buildQuery({'device_id': deviceId})}');
return retrievePlaybackState ? playbackState() : null;
}