setPreferredDark static method

Future<void> setPreferredDark(
  1. String themeId
)

Set the preferred dark theme for system theme following.

This theme will be used when the system is in dark mode and isFollowingSystem is true.

Useful when you have multiple dark themes (e.g., dark, dark_amoled, dark_blue) and want the user to choose which one to use for dark mode.

Implementation

static Future<void> setPreferredDark(String themeId) async {
  await NyThemeManager.instance.setPreferredDarkTheme(themeId);
}