copyWith method
Producer
copyWith({
- String? id,
- String? localId,
- bool? closed,
- RTCRtpSender? rtpSender,
- MediaStreamTrack? track,
- String? kind,
- RtpParameters? rtpParameters,
- bool? paused,
- int? maxSpatialLayer,
- bool? stopTracks,
- bool? disableTrackOnPause,
- bool? zeroRtpOnPause,
- Map<
String, dynamic> ? appData, - EnhancedEventEmitter? observer,
- MediaStream? stream,
- String? source,
Implementation
Producer copyWith({
String? id,
String? localId,
bool? closed,
RTCRtpSender? rtpSender,
MediaStreamTrack? track,
String? kind,
RtpParameters? rtpParameters,
bool? paused,
int? maxSpatialLayer,
bool? stopTracks,
bool? disableTrackOnPause,
bool? zeroRtpOnPause,
Map<String, dynamic>? appData,
EnhancedEventEmitter? observer,
MediaStream? stream,
String? source,
}) {
return Producer._copy(
id: id ?? this.id,
localId: localId ?? this.localId,
closed: closed ?? this.closed,
rtpSender: rtpSender ?? this.rtpSender,
track: track ?? this.track,
kind: kind ?? this.kind,
rtpParameters: rtpParameters ?? this.rtpParameters,
paused: paused ?? this.paused,
maxSpatialLayer: maxSpatialLayer ?? this.maxSpatialLayer,
stopTracks: stopTracks ?? this.stopTracks,
disableTrackOnPause: disableTrackOnPause ?? this.disableTrackOnPause,
zeroRtpOnPause: zeroRtpOnPause ?? this.zeroRtpOnPause,
appData: appData ?? this.appData,
observer: observer ?? this.observer,
stream: stream ?? this.stream,
source: source ?? this.source,
);
}