ProtoTransportSDPInfo constructor

ProtoTransportSDPInfo({
  1. String? id,
  2. Iterable<ProtoIceCandidates>? iceCandidates,
  3. ProtoIceParameters? iceParameters,
  4. ProtoDtlsParameters? dtlsParameters,
  5. ProtoSctpParameters? sctpParameters,
})

Implementation

factory ProtoTransportSDPInfo({
  $core.String? id,
  $core.Iterable<ProtoIceCandidates>? iceCandidates,
  ProtoIceParameters? iceParameters,
  ProtoDtlsParameters? dtlsParameters,
  ProtoSctpParameters? sctpParameters,
}) {
  final $result = create();
  if (id != null) {
    $result.id = id;
  }
  if (iceCandidates != null) {
    $result.iceCandidates.addAll(iceCandidates);
  }
  if (iceParameters != null) {
    $result.iceParameters = iceParameters;
  }
  if (dtlsParameters != null) {
    $result.dtlsParameters = dtlsParameters;
  }
  if (sctpParameters != null) {
    $result.sctpParameters = sctpParameters;
  }
  return $result;
}