systemLocale method

Future<LocaleName?> systemLocale()

Returns the locale that will be used if no localeId is passed to the listen method.

Implementation

Future<LocaleName?> systemLocale() async {
  if (null == _systemLocale) {
    await locales();
  }
  return Future.value(_systemLocale);
}