enterFullscreen method
void
enterFullscreen()
Enters the fullscreen mode.
This method enters the fullscreen mode and updates the navigation history accordingly.
It removes the current page from the history and pushes a new page with fullscreen mode enabled.
Implementation
void enterFullscreen() {
if (_fullscreen) {
return;
}
final page = _history[_selectedIndex];
setState(() {
_dynamicHistory.add(page);
_fullscreen = true;
});
}