getParticipantsNotUser method Null safety

Set<User> getParticipantsNotUser(
  1. User user
)

Implementation

Set<User> getParticipantsNotUser(final User user) {
  return invitations
      .where((e) => e.participant.userId != user.userId)
      .map<User>((e) => e.participant)
      .toSet();
}