mentionedContains method Null safety

bool mentionedContains(
  1. User user
)

Implementation

bool mentionedContains(User user) {
  return mentionedUsers?.firstWhere((e) => e.userId == user.userId) != null;
}