toggleFullScreen method

void toggleFullScreen()

Enables/disables full screen mode based on current fullscreen state.

Implementation

void toggleFullScreen() {
  _isFullScreen = !_isFullScreen;
  if (_isFullScreen) {
    _postControllerEvent(BetterPlayerControllerEvent.openFullscreen);
  } else {
    _postControllerEvent(BetterPlayerControllerEvent.hideFullscreen);
  }
}