setOverlays method

Future<void> setOverlays(
  1. bool visible
)

Implementation

Future<void> setOverlays(bool visible) async {
  //await SystemChrome.setPreferredOrientations(this.orientations);
  if (visible) {
    await SystemChrome.setEnabledSystemUIMode(
        edgeToedge ? SystemUiMode.edgeToEdge : SystemUiMode.immersive,
        overlays: overlays);
  } else {
    //print("Closed2");
    await SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual,
        overlays: []);
  }
  //}
}