renewCountry method

dynamic renewCountry(
  1. BuildContext context
)

Implementation

renewCountry(BuildContext context) async {
  await FlutterTimezone.getLocalTimezone().then((value) {
    if (value == "Asia/Singapore" ||
        value.toLowerCase().contains("singapore")) {
      Config.AppVersion = VersionApps.singapura;
    } else {
      Config.AppVersion = VersionApps.indonesia;
    }
    Preferences.setCountry(Config.AppVersion!);
    calliinit(context);
  });
}