areFriends static method

Future<Map<String, bool>> areFriends(
  1. UserIdList ids
)

Check if users are friend of current user.

ids List of user identifiers.

Implementation

static Future<Map<String, bool>> areFriends(UserIdList ids) {
  return NativeBridge.async(
          'Communities.areFriends', jsonEncode(ids.toJSON()))
      .then((result) {
    Map<String, bool> resultMap = {};
    jsonDecode(result).forEach((key, value) {
      resultMap[key] = value;
    });
    return resultMap;
  });
}