RTCUser.fromParticipant constructor
RTCUser.fromParticipant(
- Participant participant
Creates an RTCUser from a v5 Participant.
Maps Participant.uid, Participant.name, and Participant.avatar to the corresponding RTCUser fields.
Implementation
factory RTCUser.fromParticipant(Participant participant) {
return RTCUser(
uid: participant.uid,
name: participant.name,
avatar: participant.avatar,
);
}