RTCDataChannelStats constructor

RTCDataChannelStats({
  1. String? label,
  2. String? protocol,
  3. int? dataChannelIdentifier,
  4. required RTCDataChannelState state,
  5. int? messagesSent,
  6. int? bytesSent,
  7. int? messagesReceived,
  8. int? bytesReceived,
})

Implementation

factory RTCDataChannelStats(
        {String? label,
        String? protocol,
        int? dataChannelIdentifier,
        required RTCDataChannelState state,
        int? messagesSent,
        int? bytesSent,
        int? messagesReceived,
        int? bytesReceived}) =>
    RTCDataChannelStats._(
        label: label ?? undefined,
        protocol: protocol ?? undefined,
        dataChannelIdentifier: dataChannelIdentifier ?? undefined,
        state: state.value,
        messagesSent: messagesSent ?? undefined,
        bytesSent: bytesSent ?? undefined,
        messagesReceived: messagesReceived ?? undefined,
        bytesReceived: bytesReceived ?? undefined);