addFriends method
Adding friends
Adding a friend in Nakama does not immediately add a mutual friend relationship. An outgoing friend request is created to each user, which they will need to accept.
Implementation
@override
Future<void> addFriends({
required model.Session session,
List<String>? usernames,
List<String>? ids,
}) async {
await _client.addFriends(
api.AddFriendsRequest(
usernames: usernames,
ids: ids,
),
options: _getSessionCallOptions(session),
);
}