RTCUser.fromParticipant constructor

RTCUser.fromParticipant(
  1. 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,
  );
}