updateState method
void
updateState(
- TUIRoomInfo? roomInfo
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;
maxSeatCount.value = roomInfo.maxSeatCount;
notifyListeners();
}