setOverlays method
Implementation
Future<void> setOverlays(bool visible) async {
if (hideSystemOverlay) {
if (visible) {
await SystemChrome.setEnabledSystemUIMode(
systemUiMode ?? SystemUiMode.immersive,
overlays: overlays);
} else {
//customDebugPrint("Closed2");
await SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual,
overlays: []);
}
}
}