updateCurrentUserInfo static method

Future<void> updateCurrentUserInfo(
  1. String userId,
  2. String name,
  3. String portraitUrl
)

更新当前用户信息

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);
}