cancelFriendRequest method

Future<Either<ApiError, Friendship>> cancelFriendRequest(
  1. String requestId
)

Cancel a friend request

Implementation

Future<Either<ApiError, Friendship>> cancelFriendRequest(
    String requestId) async {
  cache.get<List<Friendship>>("sentRequest").markAsShouldReload();
  return delete("$_routePrefix/request/$requestId",
      (json) => Friendship.fromJson(json as Map<String, dynamic>));
}