updateCurrentUserInfo static method
更新当前用户信息
userId
用户 id
name
用户名称
portraitUrl
用户头像
此方法只针对iOS生效
Implementation
static Future<void> updateCurrentUserInfo(String userId, String name, String portraitUrl) async {
Map map = {"userId": userId, "name": name, "portraitUrl": portraitUrl};
await _channel.invokeMethod(RCMethodKey.SetCurrentUserInfo, map);
}