updateOwnerUserInfo method Null safety

  1. @Deprecated("Switch to using EMUserInfoManager#updateUserInfo instead.")
Future<void> updateOwnerUserInfo(
  1. EMUserInfo userInfo
)
@Deprecated("Switch to using EMUserInfoManager#updateUserInfo instead.")

Implementation

@Deprecated("Switch to using EMUserInfoManager#updateUserInfo instead.")
Future<void> updateOwnerUserInfo(EMUserInfo userInfo) async {
  Map req = {'userInfo': userInfo.toJson()};
  Map result =
      await _channel.invokeMethod(ChatMethodKeys.updateOwnUserInfo, req);
  try {
    EMError.hasErrorFromResult(result);
  } on EMError catch (e) {
    throw e;
  }
}