hideControlInSeconds method

void hideControlInSeconds()

Implementation

void hideControlInSeconds() {
  if (controlLock) {
    return;
  }
  controlVisible.add(true);
  controlHideDelay?.cancel();
  controlHideDelay = null;
  controlHideDelay = Timer(const Duration(seconds: 5), () {
    if (!controlLock) {
      controlVisible.add(false);
    }
    controlHideDelay = null;
  });
}