toNativeString method
Convert HKThemeMode to string for native bridge.
The native Android and iOS SDKs map these strings onto their respective
ThemeMode enums (LIGHT/DARK/SYSTEM).
Implementation
String toNativeString() {
switch (this) {
case HKThemeMode.light:
return 'LIGHT';
case HKThemeMode.dark:
return 'DARK';
case HKThemeMode.system:
return 'SYSTEM';
}
}