setFollowSystem static method

Future<void> setFollowSystem(
  1. bool follow
)

Enable or disable system theme following.

When enabled, the app will automatically switch between light and dark themes based on the device's brightness setting.

Implementation

static Future<void> setFollowSystem(bool follow) async {
  await NyThemeManager.instance.setFollowSystemTheme(follow);
}