copyWith method

RemoteStream copyWith({
  1. String? id,
  2. StreamType? type,
  3. MediaStream? stream,
  4. String? producerId,
  5. String? participantId,
  6. String? participantName,
  7. 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,
  );
}