setExt method

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

Set the conversation extension attribute.

This attribute is not available for thread conversations.

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;
  }
}