overlayStyle static method

void overlayStyle({
  1. Brightness brightness = Brightness.light,
})

System UI overlay style

Implementation

static void overlayStyle({Brightness brightness = Brightness.light}) =>
    SystemChrome.setSystemUIOverlayStyle(
      SystemUiOverlayStyle(
        systemNavigationBarIconBrightness: brightness,
        systemNavigationBarColor: brightness == Brightness.dark ? Colors.black : Colors.white,
      ),
    );