addFriends static method
Add a friend to current user, if operation succeeds, they both became friends.
If try to add a user who is already a friend, success
callback will be called,
but user will be added to friends list only once and friends count won't be increased.
ids
List of user identifiers to add as friend.
Implementation
static Future<int> addFriends(UserIdList ids) {
return NativeBridge.async(
'Communities.addFriends', jsonEncode(ids.toJSON()))
.then((result) => jsonDecode(result)['result']);
}