autoHideControls method

void autoHideControls()

Should be called to reset controls hide trigger. e.g on button click

Implementation

void autoHideControls() {
  _controlsHideTimer?.cancel();
  if (!controlsVisible.value) return;
  _controlsHideTimer = Timer(
    const Duration(seconds: 3),
    () => controlsVisible.value = false,
  );
}