toggleAdaptTtuTheme method

void toggleAdaptTtuTheme()

Toggles whether dictionary popup should adapt to the reader's theme.

Implementation

void toggleAdaptTtuTheme() async {
  await setPreference<bool>(
    key: 'adapt_ttu_theme',
    value: !adaptTtuTheme,
  );
}