setLightModeEnabled method

void setLightModeEnabled(
  1. bool enabled
)

Sets whether light mode is enabled in the toggle cycle.

Implementation

void setLightModeEnabled(bool enabled) {
  final newConfig =
      _config.themeModeConfig.copyWith(lightModeEnabled: enabled);
  if (!newConfig.isValid) return;
  setThemeModeConfig(newConfig);
}