toggleUseDarkTheme method

void toggleUseDarkTheme()

Toggles whether to inject dark mode.

Implementation

void toggleUseDarkTheme() async {
  await setPreference<bool>(
    key: 'use_dark_theme',
    value: !useDarkTheme,
  );
}