setExt method

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

Sets the conversation extension attribute.

This attribute is not available for thread conversations.

Implementation

Future<void> setExt(Map<String, String>? ext) async {
  try {
    Map req = _toJson();
    req.putIfNotNull("ext", ext);
    Map result = await platform_interface.Client.instance.conversationManager
        .callNativeMethod(ChatMethodKeys.syncConversationExt, req);
    ChatError.hasErrorFromResult(result);
    _ext = ext;
  } catch (e) {
    rethrow;
  }
}