setExt method

Future<void> setExt(
  1. Map<String, String>? ext
)

~english Set the conversation extension attribute.

This attribute is not available for thread conversations. ~end ~chinese 设置会话扩展属性。

子区功能目前版本暂不可设置。 ~end

Implementation

Future<void> setExt(Map<String, String>? ext) async {
  Map req = this._toJson();
  req.putIfNotNull("ext", ext);
  Map result = await _emConversationChannel.invokeMethod(
      ChatMethodKeys.syncConversationExt, req);
  try {
    ChatError.hasErrorFromResult(result);
    _ext = ext;
  } on ChatError catch (e) {
    throw e;
  }
}