RTCTransportStats constructor

RTCTransportStats({
  1. num? bytesReceived,
  2. num? bytesSent,
  3. String? dtlsCipher,
  4. RTCDtlsTransportState? dtlsState,
  5. String? localCertificateId,
  6. String? remoteCertificateId,
  7. String? selectedCandidatePairId,
  8. String? srtpCipher,
  9. String? tlsVersion,
  10. String? id,
  11. num? timestamp,
  12. RTCStatsType? type,
})

Implementation

factory RTCTransportStats({
  _i2.num? bytesReceived,
  _i2.num? bytesSent,
  _i2.String? dtlsCipher,
  _i3.RTCDtlsTransportState? dtlsState,
  _i2.String? localCertificateId,
  _i2.String? remoteCertificateId,
  _i2.String? selectedCandidatePairId,
  _i2.String? srtpCipher,
  _i2.String? tlsVersion,
  _i2.String? id,
  _i2.num? timestamp,
  _i3.RTCStatsType? type,
}) =>
    RTCTransportStats._(
      bytesReceived: bytesReceived,
      bytesSent: bytesSent,
      dtlsCipher: dtlsCipher,
      dtlsState: dtlsState?.name ?? _i6.undefined,
      localCertificateId: localCertificateId,
      remoteCertificateId: remoteCertificateId,
      selectedCandidatePairId: selectedCandidatePairId,
      srtpCipher: srtpCipher,
      tlsVersion: tlsVersion,
      id: id,
      timestamp: timestamp,
      type: type?.name ?? _i6.undefined,
    );