setPlatformOverlays method Null safety

void setPlatformOverlays()

Implementation

void setPlatformOverlays() {
  if (systemOverlaysDisabled) {
    unawaited(SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersive));
  } else if (!kIsWeb && Platform.isIOS) {
    // Get rid of ugly black bar along bottom.
    unawaited(SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual,
        overlays: [SystemUiOverlay.top]));
  } else {
    unawaited(SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge));
  }
}