setSystemOverlay static method

Future<void> setSystemOverlay(
  1. List<SystemUiOverlay> overlays, {
  2. SystemUiMode mode = SystemUiMode.manual,
})

DO THAT:

await SystemChrome.setEnabledSystemUIMode(mode, overlays: overlays);

Implementation

static Future<void> setSystemOverlay(
  List<SystemUiOverlay> overlays, {
  SystemUiMode mode = SystemUiMode.manual,
}) async {
  await SystemChrome.setEnabledSystemUIMode(
    mode,
    overlays: overlays,
  );
}