RTCTransportStats constructor
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,
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);