setExt method Null safety

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

Implementation

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