updateLocale method

Future<void> updateLocale(
  1. Locale l
)

Implementation

Future<void> updateLocale(Locale l) async {
  Get.locale = l;
  // Record that the locale was chosen explicitly so that subsequent
  // device locale changes never clobber the user's selection, even when
  // the chosen locale matches the locale last auto-applied from the device.
  rootController.localeSetExplicitly = true;
  await forceAppUpdate();
}