addFriend static method

Future<NIMResult<void>> addFriend(
  1. String userId,
  2. NIMVerifyType verifyType
)

添加好友

Implementation

static Future<NIMResult<void>> addFriend(
    String userId, NIMVerifyType verifyType) {
  return NimCore.instance.userService
      .addFriend(userId: userId, verifyType: verifyType);
}