updateOwnerUserInfo method Null safety
- @Deprecated("Switch to using EMUserInfoManager#updateUserInfo instead.")
- 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;
}
}