getTheme method

Future<Style?> getTheme()

Implementation

Future<Style?> getTheme() async {
  final theme = await Utils().getPrefsString(key: THEME_PREF_KEY);
  if (theme != null) {
    return Style.values.firstWhere((e) => e.toString() == theme);
  } else {
    return null;
  }
}