removeTag method

Future<bool> removeTag({
  1. required String artist,
  2. required String tag,
})

Remove a user's tag from an artist.

https://www.last.fm/api/show/artist.removeTag

Implementation

Future<bool> removeTag({required String artist, required String tag}) async {
  if (!_api.isAuth) {
    return Future.error(
      ScrobblenautException(
        description: "You can't use this method unless you Authenticate.",
      ),
    );
  }

  final parameters = {'artist': artist, 'tag': tag};

  final request = Request(
    api: _api,
    method: 'artist.removeTag',
    parameters: parameters,
  )..signRequest();

  final response = PostResponseHelper.parse(
    await request.send(mode: RequestMode.POST),
  );

  if (response.status) {
    return true;
  } else {
    return false;
  }
}