addFriend method
Future<V2TimValueCallback<V2TimFriendOperationResult> >
addFriend({
- required String userID,
- String? remark,
- String? friendGroup,
- String? addWording,
- String? addSource,
- required int addType,
override
Implementation
@override
Future<V2TimValueCallback<V2TimFriendOperationResult>> addFriend({
required String userID,
String? remark,
String? friendGroup,
String? addWording,
String? addSource,
required int addType,
}) async {
Map<String, dynamic> param = {
"userID": userID,
"remark": remark,
"friendGroup": friendGroup,
"addWording": addWording,
"addSource": addSource,
"addType": addType,
};
var resp = V2TimValueCallback<V2TimFriendOperationResult>.fromJson(
formatJson(
await _channel.invokeMethod(
"addFriend",
buildFriendManagerParam(
param,
),
),
),
);
log("addFriend", param, resp.toLogString());
return resp;
}