copyWith method

RemoteParticipant copyWith({
  1. String? id,
  2. String? name,
  3. Map<String, dynamic>? info,
  4. List<RemoteStream>? streams,
})

Create a copy with the given fields replaced

Implementation

RemoteParticipant copyWith({
  String? id,
  String? name,
  Map<String, dynamic>? info,
  List<RemoteStream>? streams,
}) {
  return RemoteParticipant(
    id: id ?? this.id,
    name: name ?? this.name,
    info: info ?? this.info,
    streams: streams ?? this.streams,
  );
}