getUserPreferenceForBrightness method

Future<void> getUserPreferenceForBrightness()

Implementation

Future<void> getUserPreferenceForBrightness() async {
  prefs = await SharedPreferences.getInstance();
  double brightnessValue = (prefs?.getDouble('brightness')) ?? 0.5;
  setBrightness(brightnessValue);
  customDebugPrint("Last Brightness used was $brightnessValue");
}