toggleControllerVisibility method

void toggleControllerVisibility()

Toggle the visibility of the video controller.

This method will toggle the visibility of the video controller.

If the controller is currently visible, it will be hidden. If the controller is currently hidden, it will be shown.

Implementation

void toggleControllerVisibility() {
  isControllerVisible.value = !isControllerVisible.value;
}