queue static method

Future queue({
  1. required String spotifyUri,
})

Queues the given spotifyUri

The spotifyUri can be an artist, album, playlist and track Throws a PlatformException if queing failed Throws a MissingPluginException if the method is not implemented on the native platforms.

Implementation

static Future queue({required String spotifyUri}) async {
  try {
    await _channel.invokeMethod(
        MethodNames.queueTrack, {ParamNames.spotifyUri: spotifyUri});
  } on Exception catch (e) {
    _logException(MethodNames.queueTrack, e);
    rethrow;
  }
}