upsertParticipant method
- Participant updatedParticipant
Implementation
@internal
Participants upsertParticipant(Participant updatedParticipant) => copyWith(
local: updatedParticipant.info.isLocal ? updatedParticipant : local,
remote: updatedParticipant.info.isLocal
? remote
: Map.unmodifiable({...remote, updatedParticipant.id: updatedParticipant}),
all: Map.unmodifiable({...all, updatedParticipant.id: updatedParticipant}),
);