addFriend method Null safety

Future<NIMResult<void>> addFriend(
  1. {required String userId,
  2. String? message,
  3. required NIMVerifyType verifyType}
)

Add a friend.

Implementation

Future<NIMResult<void>> addFriend(
    {required String userId,
    String? message,
    required NIMVerifyType verifyType}) async {
  return _platform.addFriend(userId, message, verifyType);
}