init method

dynamic init()

Implementation

init() async {
  SharedPreferences sharedPreferences = await SharedPreferences.getInstance();

  int fxAppThemeMode = sharedPreferences.getInt("fx_app_theme_mode") ??
      FTxAppThemeType.light.index;
  changeAppThemeMode(FTxAppThemeType.values[fxAppThemeMode]);

  int fxCustomThemeMode = sharedPreferences.getInt("fx_custom_theme_mode") ??
      FTxAppThemeType.light.index;
  changeCustomThemeMode(FTxCustomThemeType.values[fxCustomThemeMode]);

  notifyListeners();
}