RoomInfo constructor
RoomInfo({
- bool? roomLocked,
- RoomControls? config,
- Iterable<
PeersInfo> ? peers, - Iterable<
LobbyPeers> ? lobbyPeers, - String? metadata,
- Int64? startTime,
Implementation
factory RoomInfo({
$core.bool? roomLocked,
RoomControls? config,
$core.Iterable<PeersInfo>? peers,
$core.Iterable<LobbyPeers>? lobbyPeers,
$core.String? metadata,
$fixnum.Int64? startTime,
}) {
final $result = create();
if (roomLocked != null) {
$result.roomLocked = roomLocked;
}
if (config != null) {
$result.config = config;
}
if (peers != null) {
$result.peers.addAll(peers);
}
if (lobbyPeers != null) {
$result.lobbyPeers.addAll(lobbyPeers);
}
if (metadata != null) {
$result.metadata = metadata;
}
if (startTime != null) {
$result.startTime = startTime;
}
return $result;
}