getOtherUser method

Profile getOtherUser(
  1. String connectedUserId
)

Implementation

Profile getOtherUser(String connectedUserId) {
  if (senderId == connectedUserId) return receiver!;
  return sender!;
}