controls property

set controls (bool visible)

show or hide the player controls

Implementation

set controls(bool visible) {
  //print("controls called");
  if (fullscreen.value) {
    //print("Closed");
    screenManager.setOverlays(visible);
  }
  //print(visible);
  _showControls.value = visible;
  _timer?.cancel();
  if (visible) {
    _hideTaskControls();
  }
}