setOverlays method

Future<void> setOverlays(
  1. bool visible
)

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: []);
    }
  }
}