toggleLock method

void toggleLock()

Implementation

void toggleLock() {
  isReachedLock.value = !isReachedLock.value;
  stopColorAnimation();
}