addFriend method

Future addFriend({
  1. required String userID,
  2. String? reason,
  3. String? operationID,
})

Send a Friend Request, the other party needs to accept the request to become friends. userID User ID to be invited reason Remark description

Implementation

Future<dynamic> addFriend({
  required String userID,
  String? reason,
  String? operationID,
}) =>
    _channel.invokeMethod(
        'addFriend',
        _buildParam({
          "toUserID": userID,
          "reqMsg": reason,
          "operationID": Utils.checkOperationID(operationID),
        }));