setContactRemark method
设置联系人备注。
Throws 如果有方法调用的异常会在这里抛出,可以看到具体错误原因。请参见 ChatError。
Implementation
Future<void> setContactRemark({
required String userId,
required String remark,
}) async {
try {
Map req = {'userId': userId, "remark": remark};
Map result = await platform_interface.Client.instance.contactManager
.callNativeMethod(ChatMethodKeys.setContactRemark, req);
ChatError.hasErrorFromResult(result);
} catch (e) {
rethrow;
}
}