removeTag method

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

Remove a user's tag from a track.

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

Implementation

Future<bool> removeTag({
  required String track,
  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 = {'track': track, 'artist': artist, 'tag': tag};

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

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

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