changeLocale method

Future<void> changeLocale(
  1. Locale value
)

Implementation

Future<void> changeLocale(Locale value) async {
  locale = value;
  localeChangeCallback?.call(locale);
  await setValue(languageCodeKey, value.languageCode);
  Get.updateLocale(value);
  refreshAppui();
}