createDataChannel method Null safety

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);
}