updateState method
Implementation
void updateState(TUIRoomInfo? roomInfo) {
if (roomInfo == null) {
return;
}
roomId = roomInfo.roomId;
createTime = roomInfo.createTime;
roomName.value = roomInfo.name;
seatMode.value = roomInfo.seatMode;
ownerInfo.userId = roomInfo.ownerId;
ownerInfo.name.value = roomInfo.ownerName;
ownerInfo.avatarUrl.value = roomInfo.ownerAvatarUrl;
maxSeatCount.value = roomInfo.maxSeatCount;
notifyListeners();
}