listFriends abstract method

Future<FriendsList> listFriends({
  1. required Session session,
  2. FriendshipState? friendshipState,
  3. int limit = defaultLimit,
  4. String? cursor,
})

Listing friends

Nakama allows developers to list the player’s friends based on their friendship state.

Implementation

Future<model.FriendsList> listFriends({
  required model.Session session,
  FriendshipState? friendshipState,
  int limit = defaultLimit,
  String? cursor,
});