SignalMsg constructor

SignalMsg({
  1. SigMsgType? msgType,
  2. String? remoteDeviceId,
  3. int? rtcOfferId,
  4. String? sdp,
  5. String? answer,
  6. Candidate? candidate,
})

Implementation

factory SignalMsg({
  SigMsgType? msgType,
  $core.String? remoteDeviceId,
  $core.int? rtcOfferId,
  $core.String? sdp,
  $core.String? answer,
  Candidate? candidate,
}) {
  final result = create();
  if (msgType != null) result.msgType = msgType;
  if (remoteDeviceId != null) result.remoteDeviceId = remoteDeviceId;
  if (rtcOfferId != null) result.rtcOfferId = rtcOfferId;
  if (sdp != null) result.sdp = sdp;
  if (answer != null) result.answer = answer;
  if (candidate != null) result.candidate = candidate;
  return result;
}