getCurrentLocale function

Locale? getCurrentLocale()

Returns the current device locale

Implementation

Locale? getCurrentLocale() {
  return _localeFromString(Platform.localeName);
}