copyWith method Null safety

RemoteTrack copyWith(
  1. {MediaStream? stream,
  2. MediaStreamTrack? track,
  3. String? mid,
  4. bool? flowing}
)

Implementation

RemoteTrack copyWith({
  MediaStream? stream,
  MediaStreamTrack? track,
  String? mid,
  bool? flowing,
}) {
  return new RemoteTrack(
    stream: stream ?? this.stream,
    track: track ?? this.track,
    mid: mid ?? this.mid,
    flowing: flowing ?? this.flowing,
  );
}