updateState method

void updateState(
  1. TUIUserInfo userInfo
)

Implementation

void updateState(TUIUserInfo userInfo) {
  userId = userInfo.userId;
  name.value = userInfo.userName;
  avatarUrl.value = userInfo.avatarUrl;
  role.value = userInfo.userRole;
}