currentLocale property

E get currentLocale

Gets current locale.

Implementation

E get currentLocale {
  final locale = GlobalLocaleState.instance.getLocale();
  if (locale is E) {
    return locale; // take it directly
  } else {
    return utils.parseAppLocale(locale); // parse it
  }
}