RTCIceCandidateStats constructor

RTCIceCandidateStats({
  1. required String transportId,
  2. String? address,
  3. int? port,
  4. String? protocol,
  5. required RTCIceCandidateType candidateType,
  6. int? priority,
  7. String? url,
  8. String? relayProtocol,
})

Implementation

factory RTCIceCandidateStats(
        {required String transportId,
        String? address,
        int? port,
        String? protocol,
        required RTCIceCandidateType candidateType,
        int? priority,
        String? url,
        String? relayProtocol}) =>
    RTCIceCandidateStats._(
        transportId: transportId,
        address: address ?? undefined,
        port: port ?? undefined,
        protocol: protocol ?? undefined,
        candidateType: candidateType.value,
        priority: priority ?? undefined,
        url: url ?? undefined,
        relayProtocol: relayProtocol ?? undefined);