getCountry static method
Implementation
static Future<Object> getCountry() async {
SharedPreferences pref = await SharedPreferences.getInstance();
String? country = pref.getString(Key_Country);
VersionApps versionApps = VersionApps.indonesia;
if (country == "indo") {
Config.AppVersion = VersionApps.indonesia;
versionApps = VersionApps.indonesia;
}
if (country == "singapore") {
Config.AppVersion = VersionApps.singapura;
versionApps = VersionApps.singapura;
}
// if(country == "null" || country == null){
// Config.AppVersion = VersionApps.singapura;
// Preferences.setCountry(VersionApps.singapura);
// }
return versionApps;
}