controls property

set controls (bool visible)

show or hide the player controls

Implementation

set controls(bool visible) {
  // if (!UniversalPlatform.isDesktopOrWeb && visible && lockedControls.value) {
  //   return;
  // }

  // customDebugPrint("controls called with value $visible");
  if (fullscreen.value) {
    //customDebugPrint("Closed");
    screenManager.setOverlays(visible);
  }
  //customDebugPrint(visible);
  _showControls.value = visible;
  _timer?.cancel();
  if (visible && autoHideControls) {
    _hideTaskControls();
  }
}