removeFromLibrary static method
Removes the given spotifyUri
from 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 removeFromLibrary({required String spotifyUri}) async {
try {
await _channel.invokeMethod(
MethodNames.removeFromLibrary, {ParamNames.spotifyUri: spotifyUri});
} on Exception catch (e) {
_logException(MethodNames.removeFromLibrary, e);
rethrow;
}
}