getDeviceLocale static method

Locale? getDeviceLocale()

Returns the current device's Locale Eg. Locale('en','US')

Implementation

static Locale? getDeviceLocale() {
  assert(_deviceLocale != null,
      'Please, make sure you call await init() before calling getDeviceLocale()');
  return _deviceLocale;
}