setUserPreferenceForBrightness method

Future<void> setUserPreferenceForBrightness()

Implementation

Future<void> setUserPreferenceForBrightness() async {
  prefs = await SharedPreferences.getInstance();
  await prefs?.setDouble('brightness', brightness.value);
}