toggleUseDarkTheme method
Toggles whether to inject dark mode.
Implementation
void toggleUseDarkTheme() async {
await setPreference<bool>(
key: 'use_dark_theme',
value: !useDarkTheme,
);
}
Toggles whether to inject dark mode.
void toggleUseDarkTheme() async {
await setPreference<bool>(
key: 'use_dark_theme',
value: !useDarkTheme,
);
}