setStoredAppearance method

Future<void> setStoredAppearance()

Sets the appearance based on the stored value in shared preferences.

Implementation

Future<void> setStoredAppearance() async {
  final prefs = await SharedPreferences.getInstance();
  appearanceNotifier.value = prefs.getString('appearance') == "dark"
      ? Appearance.dark
      : Appearance.light;
}