addToLibrary static method
Adds the given spotifyUri
to the users library
Throws a PlatformException if adding failed Throws a MissingPluginException if the method is not implemented on the native platforms.
Implementation
static Future addToLibrary({required String spotifyUri}) async {
try {
await _channel.invokeMethod(
MethodNames.addToLibrary, {ParamNames.spotifyUri: spotifyUri});
} on Exception catch (e) {
_logException(MethodNames.addToLibrary, e);
rethrow;
}
}