lock method

void lock(
  1. String award
)

Implementation

void lock(String award) {
  if (isLocked(award)) {
    Debug().warn("Award $award is already locked, skipping");
    return;
  }
  if (isUnlocked(award)) {
    Debug().info("Locking Award $award");
    _currentModel.unlockedAwards.remove(award);
  }
  Debug().info("Locking Award $award");
  _currentModel.lockedAwards.add(award);
}