otherParticipant property

Participant? get otherParticipant

Implementation

Participant? get otherParticipant {
  if (!isDirect || participants.isEmpty) return null;
  return participants.firstWhere(
    (p) => p.userId != myUserId,
    orElse: () => participants.first,
  );
}