RoomInfo constructor

RoomInfo({
  1. bool? roomLocked,
  2. RoomControls? config,
  3. Iterable<PeersInfo>? peers,
  4. Iterable<LobbyPeers>? lobbyPeers,
  5. String? metadata,
  6. 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;
}