Future<Null> setEnabledSystemUIOverlays(List<SystemUiOverlay> overlays)

Specifies the set of overlays visible on the embedder when the application is running. The embedder may choose to ignore unsupported overlays

Arguments:

  • overlaysMask: A mask of SystemUiOverlay enum values that denotes the overlays to show.

Platform Specific Notes:

If the overlay is unsupported on the platform, enabling or disabling that overlay is a no-op and always return true.

Source

static Future<Null> setEnabledSystemUIOverlays(List<SystemUiOverlay> overlays) async {
  await PlatformMessages.invokeMethod(
    _kChannelName,
    'SystemChrome.setEnabledSystemUIOverlays',
    <List<String>>[ _stringify(overlays) ],
  );
 }