saveTheme method
Implementation
Future<void> saveTheme(ThemeType themeType) async {
final prefs = await SharedPreferences.getInstance();
await prefs.setInt(themeKey, themeType.index);
// When explicitly setting a theme, turn off system theme following
if (themeType != ThemeType.system) {
await saveUseSystemTheme(false);
}
}