enterFullscreen method
Enters fullscreen mode.
Implementation
Future<void> enterFullscreen() async {
if (isWeb) {
WebUtils.toggleFullscreen(true);
} else if (isDesktop) {
await WindowManager.instance.setFullScreen(true);
} else if (isMobile) {
await SystemChrome.setEnabledSystemUIMode(
SystemUiMode.manual,
overlays: [],
);
}
}