copyWith method
RemoteStream
copyWith({
- String? id,
- StreamType? type,
- MediaStream? stream,
- String? producerId,
- String? participantId,
- String? participantName,
- bool? paused,
Create a copy with the given fields replaced
Implementation
RemoteStream copyWith({
String? id,
StreamType? type,
MediaStream? stream,
String? producerId,
String? participantId,
String? participantName,
bool? paused,
}) {
return RemoteStream(
id: id ?? this.id,
type: type ?? this.type,
stream: stream ?? this.stream,
producerId: producerId ?? this.producerId,
participantId: participantId ?? this.participantId,
participantName: participantName ?? this.participantName,
paused: paused ?? this.paused,
);
}