RTCTransportStats constructor

RTCTransportStats({
  1. int? packetsSent,
  2. int? packetsReceived,
  3. int? bytesSent,
  4. int? bytesReceived,
  5. RTCIceRole? iceRole,
  6. String? iceLocalUsernameFragment,
  7. required RTCDtlsTransportState dtlsState,
  8. RTCIceTransportState? iceState,
  9. String? selectedCandidatePairId,
  10. String? localCertificateId,
  11. String? remoteCertificateId,
  12. String? tlsVersion,
  13. String? dtlsCipher,
  14. RTCDtlsRole? dtlsRole,
  15. String? srtpCipher,
  16. int? selectedCandidatePairChanges,
})

Implementation

factory RTCTransportStats(
        {int? packetsSent,
        int? packetsReceived,
        int? bytesSent,
        int? bytesReceived,
        RTCIceRole? iceRole,
        String? iceLocalUsernameFragment,
        required RTCDtlsTransportState dtlsState,
        RTCIceTransportState? iceState,
        String? selectedCandidatePairId,
        String? localCertificateId,
        String? remoteCertificateId,
        String? tlsVersion,
        String? dtlsCipher,
        RTCDtlsRole? dtlsRole,
        String? srtpCipher,
        int? selectedCandidatePairChanges}) =>
    RTCTransportStats._(
        packetsSent: packetsSent ?? undefined,
        packetsReceived: packetsReceived ?? undefined,
        bytesSent: bytesSent ?? undefined,
        bytesReceived: bytesReceived ?? undefined,
        iceRole: iceRole?.value ?? undefined,
        iceLocalUsernameFragment: iceLocalUsernameFragment ?? undefined,
        dtlsState: dtlsState.value,
        iceState: iceState?.value ?? undefined,
        selectedCandidatePairId: selectedCandidatePairId ?? undefined,
        localCertificateId: localCertificateId ?? undefined,
        remoteCertificateId: remoteCertificateId ?? undefined,
        tlsVersion: tlsVersion ?? undefined,
        dtlsCipher: dtlsCipher ?? undefined,
        dtlsRole: dtlsRole?.value ?? undefined,
        srtpCipher: srtpCipher ?? undefined,
        selectedCandidatePairChanges:
            selectedCandidatePairChanges ?? undefined);