createDataChannel method

RtcDataChannel createDataChannel (
  1. String label,
  2. [Map? dataChannelDict]
)

Implementation

RtcDataChannel createDataChannel(String label, [Map? dataChannelDict]) {
  if (dataChannelDict != null) {
    var dataChannelDict_1 = convertDartToNative_Dictionary(dataChannelDict);
    return _createDataChannel_1(label, dataChannelDict_1);
  }
  return _createDataChannel_2(label);
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-html/RtcPeerConnection/createDataChannel.html