getSignWith static method

void getSignWith()

Implementation

static void getSignWith() async {
  SharedPreferences pref = await SharedPreferences.getInstance();
  String? withlogin = pref.getString(Key_SignWith);
  if (withlogin == "google") {
    Config.loginWith = LoginWith.google;
  } else if (withlogin == "fb") {
    Config.loginWith = LoginWith.facebook;
  } else if (withlogin == "apple") {
    Config.loginWith = LoginWith.apple;
  } else if (withlogin == "email") {
    Config.loginWith = LoginWith.email;
  } else if (withlogin == "phone") {
    Config.loginWith = LoginWith.phone;
  } else {
    Config.loginWith = LoginWith.nonLogin;
  }
}