unfollow method

Future<void> unfollow(
  1. FollowingType type,
  2. List<String> ids
)

Unfollow already following users/artists
type - Type of Follow
ids - user/artist

Implementation

Future<void> unfollow(FollowingType type, List<String> ids) async {
  assert(ids.isNotEmpty, 'No user/artist id was provided');
  await _api
      ._delete("$_path/following?type=${type._key}&ids=${ids.join(",")}");
}