isJoined function

bool isJoined(
  1. String userId,
  2. List<String> joined
)

Implementation

bool isJoined(String userId, List<String> joined) {
  for (final i in joined) {
    if (i == userId) {
      return true;
    }
  }
  return false;
}