sendFriendRequest method
- String receiverId
Send a friend request
Implementation
Future<Either<ApiError, Friendship>> sendFriendRequest(
String receiverId) async {
cache.get<List<Friendship>>("sentRequest").markAsShouldReload();
return post("$_routePrefix/request/$receiverId",
(json) => Friendship.fromJson(json as Map<String, dynamic>));
}