toggleTheme method
Implementation
Future<void> toggleTheme() async {
_themeMode = _themeMode == ThemeMode.light
? ThemeMode.dark
: ThemeMode.light;
await _storage.set(
_themeKey,
_themeMode == ThemeMode.dark ? 'dark' : 'light',
);
notifyListeners();
}