isFriend static method

Future<bool> isFriend(
  1. String userId
)

是否为好友关系

Implementation

static Future<bool> isFriend(String userId) {
  return NimCore.instance.userService
      .isMyFriend(userId)
      .then((value) => value.data ?? false);
}