sentFriendRequestToUser method

bool sentFriendRequestToUser(
  1. LocalityUser otherUser
)

Check whether we sent a friend request to that user

Implementation

bool sentFriendRequestToUser(LocalityUser otherUser) {
  return friendRequests.any((friendRequest) =>
      friendRequest.sender.id == owner.id &&
      friendRequest.recipient.id == otherUser.id);
}