checkDifficulty static method

bool checkDifficulty(
  1. String eventId,
  2. int targetDifficulty
)

Implementation

static bool checkDifficulty(String eventId, int targetDifficulty) {
  return getDifficulty(eventId) >= targetDifficulty;
}