toggleFullscreen method
void
toggleFullscreen()
Toggles the fullscreen mode.
This method toggles the fullscreen mode and updates the navigation history accordingly.
If the fullscreen mode is enabled, it removes the current page from the history and pushes a new page with fullscreen mode enabled.
If the fullscreen mode is disabled, it removes the current page from the history and pushes a new page with fullscreen mode disabled.
Implementation
void toggleFullscreen() {
!_fullscreen ? enterFullscreen() : exitFullscreen();
}