copyWith method
Consumer
copyWith({
- String? id,
- String? localId,
- String? producerId,
- bool? closed,
- RTCRtpReceiver? rtpReceiver,
- MediaStreamTrack? track,
- RtpParameters? rtpParameters,
- bool? paused,
- Map<
String, dynamic> ? appData, - MediaStream? stream,
- EnhancedEventEmitter? observer,
- String? peerId,
Implementation
Consumer copyWith({
String? id,
String? localId,
String? producerId,
bool? closed,
RTCRtpReceiver? rtpReceiver,
MediaStreamTrack? track,
RtpParameters? rtpParameters,
bool? paused,
Map<String, dynamic>? appData,
MediaStream? stream,
EnhancedEventEmitter? observer,
String? peerId,
}) {
return Consumer._copy(
id: id ?? this.id,
localId: localId ?? this.localId,
producerId: producerId ?? this.producerId,
closed: closed ?? this.closed,
rtpReceiver: rtpReceiver ?? this.rtpReceiver,
track: track ?? this.track,
rtpParameters: rtpParameters ?? this.rtpParameters,
paused: paused ?? this.paused,
appData: appData ?? this.appData,
stream: stream ?? this.stream,
observer: observer ?? this.observer,
peerId: peerId ?? this.peerId,
);
}