addStream method Null safety

void addStream(
  1. MediaStream? stream,
  2. [Map? mediaConstraints]
)

Implementation

void addStream(MediaStream? stream, [Map? mediaConstraints]) {
  if (mediaConstraints != null) {
    var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints);
    _addStream_1(stream, mediaConstraints_1);
    return;
  }
  _addStream_2(stream);
  return;
}