Request constructor

Request({
  1. ConnectRoom? connectRoom,
  2. CreateTransport? createTransport,
  3. ConnectTransport? connectTransport,
  4. Produce? produce,
  5. ProduceData? produceData,
  6. Consume? consume,
  7. CloseProducer? closeProducer,
  8. CloseConsumer? closeConsumer,
  9. ResumeConsumer? resumeConsumer,
  10. SyncMeetingState? syncMeetingState,
  11. RestartTransportIce? restartTransportIce,
  12. SendData? sendData,
  13. UpdateRoomControls? updateRoomControls,
  14. UpdatePeerPermission? updatePeerPermission,
  15. ActivateSpeakerNotification? activateSpeakerNotification,
  16. UpdatePeerRole? updatePeerRole,
  17. UpdatePeerMetadata? updatePeerMetadata,
  18. UpdateRoomMetadata? updateRoomMetadata,
  19. CloseStreamOfLabel? closeStreamOfLabel,
  20. AcceptLobbyPeer? acceptLobbyPeer,
  21. DenyLobbyPeer? denyLobbyPeer,
  22. KickPeer? kickPeer,
  23. CloseRoom? closeRoom,
  24. CreateDataConsumer? createDataConsumer,
})

Implementation

factory Request({
  ConnectRoom? connectRoom,
  CreateTransport? createTransport,
  ConnectTransport? connectTransport,
  Produce? produce,
  ProduceData? produceData,
  Consume? consume,
  CloseProducer? closeProducer,
  CloseConsumer? closeConsumer,
  ResumeConsumer? resumeConsumer,
  SyncMeetingState? syncMeetingState,
  RestartTransportIce? restartTransportIce,
  SendData? sendData,
  UpdateRoomControls? updateRoomControls,
  UpdatePeerPermission? updatePeerPermission,
  ActivateSpeakerNotification? activateSpeakerNotification,
  UpdatePeerRole? updatePeerRole,
  UpdatePeerMetadata? updatePeerMetadata,
  UpdateRoomMetadata? updateRoomMetadata,
  CloseStreamOfLabel? closeStreamOfLabel,
  AcceptLobbyPeer? acceptLobbyPeer,
  DenyLobbyPeer? denyLobbyPeer,
  KickPeer? kickPeer,
  CloseRoom? closeRoom,
  CreateDataConsumer? createDataConsumer,
}) {
  final $result = create();
  if (connectRoom != null) {
    $result.connectRoom = connectRoom;
  }
  if (createTransport != null) {
    $result.createTransport = createTransport;
  }
  if (connectTransport != null) {
    $result.connectTransport = connectTransport;
  }
  if (produce != null) {
    $result.produce = produce;
  }
  if (produceData != null) {
    $result.produceData = produceData;
  }
  if (consume != null) {
    $result.consume = consume;
  }
  if (closeProducer != null) {
    $result.closeProducer = closeProducer;
  }
  if (closeConsumer != null) {
    $result.closeConsumer = closeConsumer;
  }
  if (resumeConsumer != null) {
    $result.resumeConsumer = resumeConsumer;
  }
  if (syncMeetingState != null) {
    $result.syncMeetingState = syncMeetingState;
  }
  if (restartTransportIce != null) {
    $result.restartTransportIce = restartTransportIce;
  }
  if (sendData != null) {
    $result.sendData = sendData;
  }
  if (updateRoomControls != null) {
    $result.updateRoomControls = updateRoomControls;
  }
  if (updatePeerPermission != null) {
    $result.updatePeerPermission = updatePeerPermission;
  }
  if (activateSpeakerNotification != null) {
    $result.activateSpeakerNotification = activateSpeakerNotification;
  }
  if (updatePeerRole != null) {
    $result.updatePeerRole = updatePeerRole;
  }
  if (updatePeerMetadata != null) {
    $result.updatePeerMetadata = updatePeerMetadata;
  }
  if (updateRoomMetadata != null) {
    $result.updateRoomMetadata = updateRoomMetadata;
  }
  if (closeStreamOfLabel != null) {
    $result.closeStreamOfLabel = closeStreamOfLabel;
  }
  if (acceptLobbyPeer != null) {
    $result.acceptLobbyPeer = acceptLobbyPeer;
  }
  if (denyLobbyPeer != null) {
    $result.denyLobbyPeer = denyLobbyPeer;
  }
  if (kickPeer != null) {
    $result.kickPeer = kickPeer;
  }
  if (closeRoom != null) {
    $result.closeRoom = closeRoom;
  }
  if (createDataConsumer != null) {
    $result.createDataConsumer = createDataConsumer;
  }
  return $result;
}