checkOpenSplash method

dynamic checkOpenSplash(
  1. BuildContext context
)

Implementation

checkOpenSplash(BuildContext context) async {

  Preferences.getdomain().then((domain) {
    if(domain != null || domain != "null"){
      // Config.domainMain = domain!;
      // print("Config. ${domain}");
      // print("Configsss ${Config.domainMain}");
      // Preferences.setdomain(domain!);
    }else{
      Config.domainMain = "sellon.net";
      Preferences.setdomain("sellon.net");
    }
    addLoadingPrensent();
    Preferences.getCountry().then((country) async {
      if(country != "null" ){
        if (country is VersionApps){
          Config.AppVersion = country;
          calliinit(context);
        }else{
          renewCountry(context);
        }
      }else{
        renewCountry(context);
      }
    });
  });

}