toDarkMode static method

void toDarkMode()

Switches to the dark theme and saves it (needs UMaterialApp). UApp.toDarkMode()

Implementation

static void toDarkMode() {
  UAppState.changeThemeMode(ThemeMode.dark);
  ULocalStorage.setDarkMode(true);
}