setGroupMemberInfo method

  1. @override
Future<V2TimCallback> setGroupMemberInfo({
  1. required String groupID,
  2. required String userID,
  3. String? nameCard,
  4. Map<String, String>? customInfo,
})
override

修改指定的群成员资料

Implementation

@override
Future<V2TimCallback> setGroupMemberInfo({
  required String groupID,
  required String userID,
  String? nameCard,
  Map<String, String>? customInfo,
}) async {
  Map<String, dynamic> param = {
    "userID": userID,
    "groupID": groupID,
    "nameCard": nameCard ?? "",
    "customInfo": customInfo,
  };
  var resp = V2TimCallback.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "setGroupMemberInfo",
        buildGroupManagerParam(
          param,
        ),
      ),
    ),
  );
  log("setGroupMemberInfo", param, resp.toLogString());
  return resp;
}