areFriends static method
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;
});
}