setThemeMode method
Use setThemeMode to set the theme mode for the SDK
The theme mode controls how the SDK renders its UI:
- HKThemeMode.light: Force light theme regardless of system settings
- HKThemeMode.dark: Force dark theme regardless of system settings
- HKThemeMode.system: Follow the device's system theme settings
Example:
config.setThemeMode(themeMode: HKThemeMode.system);
Implementation
void setThemeMode({required HKThemeMode themeMode}) {
this.themeMode = themeMode;
}