RTCDataChannelStats constructor
RTCDataChannelStats({})
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);