Request constructor
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,
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;
}